aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-02-04 17:58:24 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-02-04 18:14:06 +0100
commit60e647f856f453ce1f25d796771e81a224ac3c1a (patch)
treeedc0660004e8ee54003f37ecb24d17cf514b194a /Makefile
parent248dc6750621b9b3834bcfb54c1970c0119b4e59 (diff)
downloadtinycc-60e647f856f453ce1f25d796771e81a224ac3c1a.tar.gz
tinycc-60e647f856f453ce1f25d796771e81a224ac3c1a.tar.bz2
Slightly improved support for !gcc compilers
Hack before a complete solution after 0.9.26's release to be able to compile tcc with clang.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6b929a6..676c098 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,7 @@ CFLAGS_P=$(CFLAGS) -pg -static
LIBS_P=
LDFLAGS_P=$(LDFLAGS)
+ifeq ($(patsubst %gcc,gcc,$(CC)),gcc)
ifneq ($(GCC_MAJOR),2)
CFLAGS+=-fno-strict-aliasing
ifneq ($(GCC_MAJOR),3)
@@ -30,6 +31,7 @@ CFLAGS+=-march=i386 -falign-functions=0
endif
endif
endif
+endif
ifdef CONFIG_WIN64
CONFIG_WIN32=yes
@@ -236,7 +238,7 @@ libtcc1.a : FORCE
lib/%/libtcc1.a : FORCE $(PROGS_CROSS)
@$(MAKE) -C lib cross TARGET=$*
bcheck.o : lib/bcheck.c
- gcc -c $< -o $@ $(CPPFLAGS) $(CFLAGS)
+ $(CC) -c $< -o $@ $(CPPFLAGS) $(CFLAGS)
FORCE:
# install