diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2013-01-06 12:20:23 +0100 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2013-01-06 12:22:56 +0100 |
| commit | eb028a8f423d2623cc174ab4d3c5a80fd8efbdde (patch) | |
| tree | 879d6c685f837393799ec23eaf62f925d65c08a0 /Makefile | |
| parent | fc574f14984d11f1ead50560d1bdc5ae0eaf6d8d (diff) | |
| download | tinycc-eb028a8f423d2623cc174ab4d3c5a80fd8efbdde.tar.gz tinycc-eb028a8f423d2623cc174ab4d3c5a80fd8efbdde.tar.bz2 | |
Honor CC when testing for -Wno-unused-result
The compiler used for compiling tcc is the one referenced in the
CCÂ variable. As such, the check for -Wno-unused-result presence should
be done on CC.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -18,7 +18,7 @@ CFLAGS+=-Wno-pointer-sign -Wno-sign-compare # add -Wno-unused-result only on gcc >= 4.4 ifeq ($(GCC_MAJOR),4) -GCCGREATERTHEN44 := $(shell expr `gcc -dumpversion | cut -f2 -d.` \>= 4) +GCCGREATERTHEN44 := $(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 4) else GCCGREATERTHEN44 := 1 endif |
