Ticket #6793: cxa-haiku.patch

File cxa-haiku.patch, 1.6 KB (added by kaliber, 14 years ago)
  • build/jam/BuildSetup

     
    491491;
    492492HAIKU_LIBRARY_BEGIN_GLUE_CODE =
    493493    <src!system!glue!arch!$(HAIKU_ARCH)>crti.o
    494     crtbegin.o
     494    crtbeginS.o
    495495    <src!system!glue>init_term_dyn.o
    496496;
    497497HAIKU_LIBRARY_END_GLUE_CODE =
    498     crtend.o
     498    crtendS.o
    499499    <src!system!glue!arch!$(HAIKU_ARCH)>crtn.o
    500500;
    501501HAIKU_EXECUTABLE_BEGIN_GLUE_CODE =
     
    504504    <src!system!glue>start_dyn.o
    505505    <src!system!glue>init_term_dyn.o
    506506;
    507 HAIKU_EXECUTABLE_END_GLUE_CODE = $(HAIKU_LIBRARY_END_GLUE_CODE) ;
     507HAIKU_EXECUTABLE_END_GLUE_CODE =
     508    crtend.o
     509    <src!system!glue!arch!$(HAIKU_ARCH)>crtn.o
     510;
    508511HAIKU_KERNEL_ADDON_BEGIN_GLUE_CODE = crtbegin.o
    509512    <src!system!glue>haiku_version_glue.o ;
    510513HAIKU_KERNEL_ADDON_END_GLUE_CODE = $(HAIKU_GCC_LIBGCC) crtend.o ;
    511514
    512 SEARCH on crtbegin.o crtend.o = $(HAIKU_GCC_LIB_DIR) ;
     515SEARCH on crtbegin.o crtend.o crtbeginS.o crtendS.o = $(HAIKU_GCC_LIB_DIR) ;
    513516
    514517HAIKU_EXECUTABLE_MIME_TYPE = "application/x-vnd.Be-elfexecutable" ;
    515518
  • src/system/runtime_loader/Jamfile

     
    88# Don't let gcc inject built-in function code. This will cause dependencies
    99# to libroot, which we don't link against.
    1010SubDirCcFlags -fno-builtin ;
    11 SubDirC++Flags -fno-builtin -fno-exceptions ;
     11SubDirC++Flags -fno-builtin -fno-exceptions -fno-use-cxa-atexit ;
    1212
    1313DEFINES +=
    1414    KMESSAGE_CONTAINER_ONLY