aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-01-06 12:20:23 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-01-06 12:22:56 +0100
commiteb028a8f423d2623cc174ab4d3c5a80fd8efbdde (patch)
tree879d6c685f837393799ec23eaf62f925d65c08a0 /Makefile
parentfc574f14984d11f1ead50560d1bdc5ae0eaf6d8d (diff)
downloadtinycc-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--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f35bdff..c8bca47 100644
--- a/Makefile
+++ b/Makefile
@@ -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