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)
This commit is contained in:
grischka
2013-02-06 19:01:07 +01:00
parent 92024ab07a
commit 7a477d70ca
7 changed files with 41 additions and 61 deletions

8
tcc.h
View File

@ -47,7 +47,9 @@
# include <sys/time.h>
# include <sys/ucontext.h>
# include <sys/mman.h>
# include <dlfcn.h>
# ifndef CONFIG_TCC_STATIC
# include <dlfcn.h>
# endif
#else
# include <windows.h>
# include <sys/timeb.h>
@ -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