Ticket #6793: cxa-gcc.patch

File cxa-gcc.patch, 1.2 KB (added by kaliber, 14 years ago)
  • gcc/config.gcc

     
    10601060i[34567]86-*-haiku*)
    10611061    tmake_file='t-haiku i386/t-crtpic'
    10621062    tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h haiku.h i386/haiku.h"
    1063     extra_parts='crtbegin.o crtend.o'
     1063    extra_parts='crtbegin.o crtend.o crtbeginS.o crtendS.o'
     1064    default_use_cxa_atexit=yes
    10641065    ;;
    10651066x86_64-*-haiku*)
    10661067    tmake_file='t-haiku i386/t-haiku64 i386/t-crtpic'
  • gcc/config/haiku.h

     
    6666
    6767
    6868#undef  STARTFILE_SPEC
    69 #define STARTFILE_SPEC "crti.o%s crtbegin.o%s %{!shared:%{!nostart:start_dyn.o%s}} init_term_dyn.o%s"
     69#define STARTFILE_SPEC "crti.o%s %{shared|nostart:crtbeginS.o%s;:crtbegin.o%s} %{!shared:%{!nostart:start_dyn.o%s}} init_term_dyn.o%s"
    7070
    7171#undef  ENDFILE_SPEC
    72 #define ENDFILE_SPEC "crtend.o%s crtn.o%s"
     72#define ENDFILE_SPEC "%{shared|nostart:crtendS.o%s;:crtend.o%s} crtn.o%s"
    7373
    7474/* For native compiler, use standard Haiku include file search paths
    7575   rooted in /boot/develop/headers.  For a cross compiler, don't