From 7a477d70cabe15fa66fd0f32fab5e95841a500e5 Mon Sep 17 00:00:00 2001 From: grischka Date: Wed, 6 Feb 2013 19:01:07 +0100 Subject: lib/Makefile: use CC, add bcheck to libtcc1.a Also: - fix "make tcc_p" (profiling version) - remove old gcc flags: -mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 - remove test "hello" for Darwin (cannot compile to file) --- tcc.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 8e6b0a5..885951c 100644 --- a/tcc.h +++ b/tcc.h @@ -47,7 +47,9 @@ # include # include # include -# include +# ifndef CONFIG_TCC_STATIC +# include +# endif #else # include # include @@ -134,10 +136,6 @@ #define CONFIG_TCC_BCHECK /* enable bound checking code */ #endif -#if defined(_WIN32) && !defined(TCC_TARGET_PE) -#define CONFIG_TCC_STATIC -#endif - /* define it to include assembler support */ #if !defined(TCC_TARGET_ARM) && !defined(TCC_TARGET_C67) #define CONFIG_TCC_ASM -- cgit v1.3.1