From 2220467fcf27dbdf6b0d6d8cc56eb65bc35a78ab Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 27 Apr 2010 20:13:19 +0200 Subject: Don't load libtcc1 on arch where it doesn't exist ARM architecture doesn't have any libtcc1 implementation but tcc load libtcc1.a in all case. This patch add a conditional preprocessor instruction to load libtcc1.a only when there is an implementation for the target architecture. --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f53ea85..3ee162d 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,7 @@ endif ifeq ($(ARCH),arm) NATIVE_DEFINES=-DTCC_TARGET_ARM +NATIVE_TARGET=-DWITHOUT_LIBTCC NATIVE_DEFINES+=$(if $(wildcard /lib/ld-linux.so.3),-DTCC_ARM_EABI) NATIVE_DEFINES+=$(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP) endif -- cgit v1.3.1