Added patch to detect and use the paths for 64bit libraries as

used by CentOS (affects X86_64 only).
This commit is contained in:
Nikos Mavrogiannopoulos
2010-01-28 08:27:38 +01:00
parent 900871ca8d
commit 253bad7993
4 changed files with 17 additions and 2 deletions

6
tcc.h
View File

@ -136,7 +136,11 @@ typedef int BOOL;
/* path to find crt1.o, crti.o and crtn.o. Only needed when generating
executables or dlls */
#define CONFIG_TCC_CRT_PREFIX CONFIG_SYSROOT "/usr/lib"
#if defined(TCC_TARGET_X86_64_CENTOS)
# define CONFIG_TCC_CRT_PREFIX CONFIG_SYSROOT "/usr/lib64"
#else
# define CONFIG_TCC_CRT_PREFIX CONFIG_SYSROOT "/usr/lib"
#endif
#define INCLUDE_STACK_SIZE 32
#define IFDEF_STACK_SIZE 64