From 44abffe33a10ee2bdc0d66f87ffa5e178182d6e6 Mon Sep 17 00:00:00 2001 From: grischka Date: Sun, 7 May 2017 12:41:29 +0200 Subject: more minor fixes * tccgen: re-allow long double constants for x87 cross sizeof (long double) may be 12 or 16 depending on host platform (i386/x86_64 on unix/windows). Except that it's 8 if the host is on windows and not gcc was used to compile tcc. * win64: fix builtin_va_start after VT_REF removal See also a8b83ce43a95fa519dacfe7690a3a0098af7909c * tcctest.c: remove outdated limitation for ll-bitfield test It always worked, there is no reason why it should not work in future. * libtcc1.c: exclude long double conversion on ARM * Makefile: remove CFLAGS from link recipes * lib/Makefile: use target DEFINES as passed from main Makefile * lib/armflush.c lib/va_list.c: factor out from libtcc1.c * arm-gen.c: disable "depreciated" warnings for now --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 22e775c..b229075 100644 --- a/Makefile +++ b/Makefile @@ -195,14 +195,14 @@ $(X)arm-gen.o : arm-asm.c # Host Tiny C Compiler tcc$(EXESUF): tcc.o $(LIBTCC) - $(CC) -o $@ $^ $(DEFINES) $(CFLAGS) $(LIBS) $(LDFLAGS) $(LINK_LIBTCC) + $(CC) -o $@ $^ $(LIBS) $(LDFLAGS) $(LINK_LIBTCC) # Cross Tiny C Compilers %-tcc$(EXESUF): FORCE @$(MAKE) --no-print-directory $@ CROSS_TARGET=$* ONE_SOURCE=$(or $(ONE_SOURCE),yes) $(CROSS_TARGET)-tcc$(EXESUF): $(TCC_FILES) - $(CC) -o $@ $^ $(DEFINES) $(CFLAGS) $(LIBS) $(LDFLAGS) + $(CC) -o $@ $^ $(LIBS) $(LDFLAGS) # profiling version tcc_p$(EXESUF): $($T_FILES) @@ -214,13 +214,14 @@ libtcc.a: $(LIBTCC_OBJ) # dynamic libtcc library libtcc.so: $(LIBTCC_OBJ) - $(CC) -shared -Wl,-soname,$@ -o $@ $^ $(CFLAGS) $(LDFLAGS) + $(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDFLAGS) libtcc.so: CFLAGS+=-fPIC +libtcc.so: LDFLAGS+=-fPIC # windows dynamic libtcc library libtcc.dll : $(LIBTCC_OBJ) - $(CC) -shared -o $@ $^ $(CFLAGS) $(LDFLAGS) + $(CC) -shared -o $@ $^ $(LDFLAGS) libtcc.def : libtcc.dll tcc$(EXESUF) ./tcc$(EXESUF) -impdef $< -o $@ @@ -229,12 +230,13 @@ libtcc.dll : DEFINES += -DLIBTCC_AS_DLL # TinyCC runtime libraries libtcc1.a : tcc$(EXESUF) FORCE - @$(MAKE) -C lib + @$(MAKE) -C lib DEFINES="$(DEF-$T)" # Cross libtcc1.a libtcc1-%.a : %-tcc$(EXESUF) FORCE - @$(MAKE) -C lib CROSS_TARGET=$* + @$(MAKE) -C lib DEFINES="$(DEF-$*)" CROSS_TARGET=$* +.PRECIOUS: libtcc1-%.a FORCE: # -------------------------------------------------------------------------- -- cgit v1.3.1