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 /lib | |
| 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 'lib')
| -rw-r--r-- | lib/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Makefile b/lib/Makefile index bb70dea..2288600 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -60,15 +60,15 @@ CFLAGS := $(filter-out -fstack-protector-strong,$(CFLAGS)) ifeq "$(TARGET)" "i386-win" OBJ = $(addprefix $(DIR)/,$(WIN32_O)) TGT = -DTCC_TARGET_I386 -DTCC_TARGET_PE - XCC = $(TCC) -B$(top_srcdir)/win32 -I$(top_srcdir)/include - XAR = $(DIR)/tiny_libmaker$(EXESUF) + XCC ?= $(TCC) -B$(top_srcdir)/win32 -I$(top_srcdir)/include + XAR ?= $(DIR)/tiny_libmaker$(EXESUF) PICFLAGS = else ifeq "$(TARGET)" "x86_64-win" OBJ = $(addprefix $(DIR)/,$(WIN64_O)) TGT = -DTCC_TARGET_X86_64 -DTCC_TARGET_PE XCC = $(TCC) -B$(top_srcdir)/win32 -I$(top_srcdir)/include - XAR = $(DIR)/tiny_libmaker$(EXESUF) + XAR ?= $(DIR)/tiny_libmaker$(EXESUF) PICFLAGS = else ifeq "$(TARGET)" "i386" |
