From 944627c479f01d919f10f9d9dd807cca43bf7aba Mon Sep 17 00:00:00 2001 From: grischka Date: Thu, 14 Feb 2013 06:53:07 +0100 Subject: configure: cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add quotes: eval opt=\"$opt\" - use $source_path/conftest.c for OOT build - add fn_makelink() for OOT build - do not check lddir etc. on Windows/MSYS - formatting config-print.c - rename to conftest.c (for consistency) - change option e to b - change output from that from "yes" to "no" - remove inttypes.h dependency - simpify version output Makefile: - improve GCC warning flag checks tcc.h: - add back default CONFIG_LDDIR - add default CONFIG_TCCDIR also (just for fun) tccpp.c: - fix Christian's last warning tccpp.c: In function ‘macro_subst’: tccpp.c:2803:12: warning: ‘*((void *)&cval+4)’ is used uninitialized in this function [-Wuninitialized] That the change fixes the warning doesn't make sense but anyway. libtcc.c: - tcc_error/warning: print correct source filename/line for token :paste: (also inline :asm:) lddir and multiarch logic still needs fixing. --- tcc.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index e9ce802..638540a 100644 --- a/tcc.h +++ b/tcc.h @@ -155,6 +155,12 @@ #ifndef CONFIG_SYSROOT # define CONFIG_SYSROOT "" #endif +#ifndef CONFIG_TCCDIR +# define CONFIG_TCCDIR "." +#endif +#ifndef CONFIG_LDDIR +# define CONFIG_LDDIR "lib" +#endif /* path to find crt1.o, crti.o and crtn.o */ #ifndef CONFIG_TCC_CRTPREFIX -- cgit v1.3.1