From: Urs Janssen Date: Fri, 15 Feb 2013 12:04:39 +0000 (+0100) Subject: fixed pasto in in 108b2876; background for the additional $CC test is: X-Git-Tag: release_0_9_26~1 X-Git-Url: https://repo.or.cz/w/tinycc.git/commitdiff_plain/bfde339b8cd544c58eb519db3c22ca9c7520daff fixed pasto in in 108b2876; background for the additional $CC test is: GCC_MAJOR may be set even is $CC not realy gcc (but i.e. clang, which (as of 3.1) requires an addtional CFLAG to accept the non portable (gnuisms all over the place; try to cimpile tcc with Sun^HOracle, Intel, Pathscale, ... compiler) code). --- diff --git a/Makefile b/Makefile index 59a3ed7c..705b585d 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ VPATH = $(top_srcdir) CPPFLAGS = -I$(TOP) # for config.h -ifeq (-$(findstring clang,$(CC))-,-gcc-) +ifeq (-$(findstring gcc,$(CC))-,-gcc-) ifeq (-$(findstring $(GCC_MAJOR),01)-,--) CFLAGS+=-fno-strict-aliasing ifeq (-$(findstring $(GCC_MAJOR),23)-,--)