aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-01-28 08:27:38 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-01-28 08:27:38 +0100
commit253bad7993825fc4f2caa3613035b3bfa36821fa (patch)
tree989f8eea4d730af9b92bd77e2d8adc482413f0c9 /tcc.h
parent900871ca8daf805e3c3a90634b07a9d56e4fd8bb (diff)
downloadtinycc-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 'tcc.h')
-rw-r--r--tcc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tcc.h b/tcc.h
index 156bdd0..ef0bb78 100644
--- a/tcc.h
+++ b/tcc.h
@@ -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