diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules index 004becb8b0..449aca49be 100644 --- a/build/jam/ArchitectureRules +++ b/build/jam/ArchitectureRules @@ -198,18 +198,6 @@ rule ArchitectureSetup architecture } # library and executable glue code - local crtBegin ; - local crtEnd ; - # TODO: use crtbeginS.o and crtendS.o unconditionally once we have - # switched to new compiler packages - if [ Glob $(HAIKU_GCC_LIB_DIR_$(architecture)) : crtbeginS.o ] { - crtBegin = <$(architecture)>crtbeginS.o ; - crtEnd = <$(architecture)>crtendS.o ; - } else { - crtBegin = <$(architecture)>crtbegin.o ; - crtEnd = <$(architecture)>crtend.o ; - } - local commonGlueCode = init_term_dyn.o crti.o @@ -217,23 +205,24 @@ rule ArchitectureSetup architecture ; HAIKU_LIBRARY_BEGIN_GLUE_CODE_$(architecture) = crti.o - $(crtBegin) + <$(architecture)>crtbeginS.o init_term_dyn.o ; HAIKU_LIBRARY_END_GLUE_CODE_$(architecture) = - $(crtEnd) + <$(architecture)>crtendS.o crtn.o ; HAIKU_EXECUTABLE_BEGIN_GLUE_CODE_$(architecture) = crti.o - $(crtBegin) + <$(architecture)>crtbeginS.o start_dyn.o init_term_dyn.o ; HAIKU_EXECUTABLE_END_GLUE_CODE_$(architecture) = $(HAIKU_LIBRARY_END_GLUE_CODE_$(architecture)) ; - SEARCH on $(crtBegin) $(crtEnd) = $(HAIKU_GCC_LIB_DIR_$(architecture)) ; + SEARCH on <$(architecture)>crtbeginS.o <$(architecture)>crtendS.o + = $(HAIKU_GCC_LIB_DIR_$(architecture)) ; # init library name map local libraryGrist = "" ; @@ -475,21 +464,10 @@ rule KernelArchitectureSetup architecture # compiling (part of) the boot loader. # kernel add-on glue code - local crtBegin ; - local crtEnd ; - # TODO: use crtbeginS.o and crtendS.o unconditionally once we have - # switched to new compiler packages - if [ Glob $(HAIKU_GCC_LIB_DIR_$(architecture)) : crtbeginS.o ] { - crtBegin = <$(architecture)>crtbeginS.o ; - crtEnd = <$(architecture)>crtendS.o ; - } else { - crtBegin = <$(architecture)>crtbegin.o ; - crtEnd = <$(architecture)>crtend.o ; - } - HAIKU_KERNEL_ADDON_BEGIN_GLUE_CODE = $(crtBegin) + HAIKU_KERNEL_ADDON_BEGIN_GLUE_CODE = <$(architecture)>crtbeginS.o haiku_version_glue.o ; HAIKU_KERNEL_ADDON_END_GLUE_CODE - = $(HAIKU_GCC_LIBGCC_$(architecture)) $(crtEnd) ; + = $(HAIKU_GCC_LIBGCC_$(architecture)) <$(architecture)>crtendS.o ; }