mirror of
https://github.com/frida/tinycc
synced 2025-02-18 00:03:59 +03:00
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.
This commit is contained in:
parent
248dc67506
commit
60e647f856
4
Makefile
4
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user