diff options
| author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-01-28 08:27:38 +0100 |
|---|---|---|
| committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-01-28 08:27:38 +0100 |
| commit | 253bad7993825fc4f2caa3613035b3bfa36821fa (patch) | |
| tree | 989f8eea4d730af9b92bd77e2d8adc482413f0c9 /libtcc.c | |
| parent | 900871ca8daf805e3c3a90634b07a9d56e4fd8bb (diff) | |
| download | tinycc-253bad7993825fc4f2caa3613035b3bfa36821fa.tar.gz tinycc-253bad7993825fc4f2caa3613035b3bfa36821fa.tar.bz2 | |
Added patch to detect and use the paths for 64bit libraries as
used by CentOS (affects X86_64 only).
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 */ |
