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

View File

@ -944,9 +944,15 @@ LIBTCCAPI TCCState *tcc_new(void)
#ifndef TCC_TARGET_PE
/* default library paths */
tcc_add_library_path(s, CONFIG_SYSROOT "/usr/local/lib");
# if defined(TCC_TARGET_X86_64_CENTOS)
tcc_add_library_path(s, CONFIG_SYSROOT "/usr/lib64");
tcc_add_library_path(s, CONFIG_SYSROOT "/lib64");
tcc_add_library_path(s, CONFIG_SYSROOT "/usr/local/lib64");
# else
tcc_add_library_path(s, CONFIG_SYSROOT "/usr/lib");
tcc_add_library_path(s, CONFIG_SYSROOT "/lib");
tcc_add_library_path(s, CONFIG_SYSROOT "/usr/local/lib");
# endif
#endif
/* no section zero */