diff options
| author | seyko <seyko2@gmail.com> | 2015-03-04 11:47:52 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-03-04 11:47:52 +0300 |
| commit | 48d12e42ada846e6d573bbccc3e3b8e7eaa1e1a7 (patch) | |
| tree | dfc310af301b0327411858d8388444e6f23d4a79 /Makefile | |
| parent | 76af94862352a3f1d26249d9ea6f795d107c1d7f (diff) | |
| download | tinycc-48d12e42ada846e6d573bbccc3e3b8e7eaa1e1a7.tar.gz tinycc-48d12e42ada846e6d573bbccc3e3b8e7eaa1e1a7.tar.bz2 | |
gcc options and mingw: move a gcc options detection from a makefile to the configure
+ define XCC and XAR if mingw32 defined
+ use XCC and XAR in lib/Makefile if defined
Try "./configure --enable-mingw32; make". This must work
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -8,19 +8,7 @@ VPATH = $(top_srcdir) CPPFLAGS += -I$(TOP) # for config.h -ifeq (-$(findstring gcc,$(CC))-,-gcc-) -ifeq (-$(findstring $(GCC_MAJOR),01)-,--) -CFLAGS+=-fno-strict-aliasing -ifeq (-$(findstring $(GCC_MAJOR),23)-,--) -CFLAGS+=-Wno-pointer-sign -Wno-sign-compare -ifeq (-$(GCC_MAJOR)-$(findstring $(GCC_MINOR),56789)-,-4--) -CFLAGS+=-D_FORTIFY_SOURCE=0 -else -CFLAGS+=-Wno-unused-result -endif -endif -endif -else # not GCC +ifneq (-$(findstring gcc,$(CC))-,-gcc-) ifeq (-$(findstring clang,$(CC))-,-clang-) # make clang accept gnuisms in libtcc1.c CFLAGS+=-fheinous-gnu-extensions |
