mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-01 04:20:09 +08:00
Set CONFIG_MULTIARCHDIR for cross compilers.
Chances a cross-compiler will find a working crt*.o in /usr/lib are more or less 0. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
ae09558d71
commit
a6149c6dbb
8
Makefile
8
Makefile
@ -167,8 +167,8 @@ tcc_p$(EXESUF): $(NATIVE_FILES)
|
|||||||
$(CC) -o $@ $< -DONE_SOURCE $(NATIVE_DEFINES) $(CPPFLAGS_P) $(CFLAGS_P) $(LIBS_P) $(LDFLAGS_P)
|
$(CC) -o $@ $< -DONE_SOURCE $(NATIVE_DEFINES) $(CPPFLAGS_P) $(CFLAGS_P) $(LIBS_P) $(LDFLAGS_P)
|
||||||
|
|
||||||
$(I386_CROSS): DEFINES = -DTCC_TARGET_I386 \
|
$(I386_CROSS): DEFINES = -DTCC_TARGET_I386 \
|
||||||
-DCONFIG_TCCDIR="\"$(tccdir)/i386\""
|
-DCONFIG_TCCDIR="\"$(tccdir)/i386\"" -DCONFIG_MULTIARCHDIR="\"i386-linux-gnu\""
|
||||||
$(X64_CROSS): DEFINES = -DTCC_TARGET_X86_64
|
$(X64_CROSS): DEFINES = -DTCC_TARGET_X86_64 -DCONFIG_MULTIARCHDIR="\"x86_64-linux-gnu\""
|
||||||
$(WIN32_CROSS): DEFINES = -DTCC_TARGET_I386 -DTCC_TARGET_PE \
|
$(WIN32_CROSS): DEFINES = -DTCC_TARGET_I386 -DTCC_TARGET_PE \
|
||||||
-DCONFIG_TCCDIR="\"$(tccdir)/win32\"" \
|
-DCONFIG_TCCDIR="\"$(tccdir)/win32\"" \
|
||||||
-DCONFIG_TCC_LIBPATHS="\"{B}/lib/32;{B}/lib\""
|
-DCONFIG_TCC_LIBPATHS="\"{B}/lib/32;{B}/lib\""
|
||||||
@ -179,8 +179,8 @@ $(WINCE_CROSS): DEFINES = -DTCC_TARGET_PE
|
|||||||
$(C67_CROSS): DEFINES = -DTCC_TARGET_C67
|
$(C67_CROSS): DEFINES = -DTCC_TARGET_C67
|
||||||
$(ARM_FPA_CROSS): DEFINES = -DTCC_TARGET_ARM
|
$(ARM_FPA_CROSS): DEFINES = -DTCC_TARGET_ARM
|
||||||
$(ARM_FPA_LD_CROSS)$(EXESUF): DEFINES = -DTCC_TARGET_ARM -DLDOUBLE_SIZE=12
|
$(ARM_FPA_LD_CROSS)$(EXESUF): DEFINES = -DTCC_TARGET_ARM -DLDOUBLE_SIZE=12
|
||||||
$(ARM_VFP_CROSS): DEFINES = -DTCC_TARGET_ARM -DTCC_ARM_VFP
|
$(ARM_VFP_CROSS): DEFINES = -DTCC_TARGET_ARM -DTCC_ARM_VFP -DCONFIG_MULTIARCHDIR="\"arm-linux-gnu\""
|
||||||
$(ARM_EABI_CROSS): DEFINES = -DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_VFP
|
$(ARM_EABI_CROSS): DEFINES = -DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_VFP -DCONFIG_MULTIARCHDIR="\"arm-linux-gnueabi\""
|
||||||
|
|
||||||
$(I386_CROSS): $(I386_FILES)
|
$(I386_CROSS): $(I386_FILES)
|
||||||
$(X64_CROSS): $(X86_64_FILES)
|
$(X64_CROSS): $(X86_64_FILES)
|
||||||
|
Loading…
Reference in New Issue
Block a user