From 762a43877b6edc4a586b2b41f7474eee0adcdcec Mon Sep 17 00:00:00 2001 From: grischka Date: Thu, 14 Feb 2013 17:43:24 +0100 Subject: configure: pass CONFIG_xxxDIR/PATH options via commandline - except for CONFIG_SYSROOT and CONFIG_TCCDIR Strictly neccessary it is only for CONFIG_MULTIARCHDIR because otherwise if it's in config.h it is impossible to leave it undefined. But it is also nicer not to use these definitions for cross-compilers. - Also: lib/Makefile : include ../Makefile for CFLAGS lib/libtcc1.c : fix an issue compiling tcc with tcc on x64 --- lib/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Makefile') diff --git a/lib/Makefile b/lib/Makefile index e125f2c..dfac0f8 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -3,7 +3,7 @@ # TOP = .. -include $(TOP)/config.mak +include $(TOP)/Makefile VPATH = $(top_srcdir)/lib $(top_srcdir)/win32/lib ifndef TARGET @@ -91,7 +91,7 @@ $(DIR)/%.o : %.c $(DIR)/%.o : %.S $(XCC) -c $< -o $@ $(XFLAGS) $(DIR)/%$(EXESUF) : $(TOP)/win32/tools/%.c - $(CC) -Os -s -o $@ $< $(XFLAGS) $(LDFLAGS) + $(CC) -o $@ $< $(XFLAGS) $(LDFLAGS) $(OBJ) $(XAR) : $(DIR)/exists $(DIR)/exists : -- cgit v1.3.1