From 108b2876654bd5f64dd4a60fe1791cc939921625 Mon Sep 17 00:00:00 2001 From: Urs Janssen Date: Fri, 15 Feb 2013 00:53:33 +0100 Subject: - don't use GCC_MAJOR to see if we're not using gcc as GCC_MAJOR might be set during configure even with --cc=notgcc as long as gcc is installed. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0879247..59a3ed7 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ VPATH = $(top_srcdir) CPPFLAGS = -I$(TOP) # for config.h +ifeq (-$(findstring clang,$(CC))-,-gcc-) ifeq (-$(findstring $(GCC_MAJOR),01)-,--) CFLAGS+=-fno-strict-aliasing ifeq (-$(findstring $(GCC_MAJOR),23)-,--) @@ -18,6 +19,7 @@ else CFLAGS+=-Wno-unused-result endif endif +endif else # not GCC ifeq (-$(findstring clang,$(CC))-,-clang-) # make clang accept gnuisms in libtcc1.c -- cgit v1.3.1