mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
base-linux: use the Genode GCC's crt files
With this patch hybrid applications get linked with the Genode GCC's 'crtbegin.o' and 'crtend.o' files instead of the host GCC's versions to avoid compatibility problems. This only affects the 'linux_x86' platform, since on the 'lx_hybrid_x86' platform the Genode GCC is the host GCC. Fixes #550.
This commit is contained in:
parent
97e4470da6
commit
522a86e54a
@ -80,13 +80,13 @@ endif
|
||||
ifneq ($(filter hardening_tool_chain, $(SPECS)),)
|
||||
EXT_OBJECTS += $(shell cc $(CC_MARCH) -print-file-name=Scrt1.o)
|
||||
EXT_OBJECTS += $(shell cc $(CC_MARCH) -print-file-name=crti.o)
|
||||
EXT_OBJECTS += $(shell cc $(CC_MARCH) -print-file-name=crtbeginS.o)
|
||||
EXT_OBJECTS += $(shell cc $(CC_MARCH) -print-file-name=crtendS.o)
|
||||
EXT_OBJECTS += $(shell $(CUSTOM_CC) $(CC_MARCH) -print-file-name=crtbeginS.o)
|
||||
EXT_OBJECTS += $(shell $(CUSTOM_CC) $(CC_MARCH) -print-file-name=crtendS.o)
|
||||
else
|
||||
EXT_OBJECTS += $(shell cc $(CC_MARCH) -print-file-name=crt1.o)
|
||||
EXT_OBJECTS += $(shell cc $(CC_MARCH) -print-file-name=crti.o)
|
||||
EXT_OBJECTS += $(shell cc $(CC_MARCH) -print-file-name=crtbegin.o)
|
||||
EXT_OBJECTS += $(shell cc $(CC_MARCH) -print-file-name=crtend.o)
|
||||
EXT_OBJECTS += $(shell $(CUSTOM_CC) $(CC_MARCH) -print-file-name=crtbegin.o)
|
||||
EXT_OBJECTS += $(shell $(CUSTOM_CC) $(CC_MARCH) -print-file-name=crtend.o)
|
||||
endif
|
||||
EXT_OBJECTS += $(shell cc $(CC_MARCH) -print-file-name=crtn.o)
|
||||
EXT_OBJECTS += -lgcc -lgcc_s -lsupc++ -lc
|
||||
|
Loading…
Reference in New Issue
Block a user