aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@celest.fr>2011-08-03 22:26:39 +0200
committerThomas Preud'homme <thomas.preudhomme@celest.fr>2011-08-03 22:26:39 +0200
commit0b6652003cba7dbf3b8b2b76564d81cbceacceb0 (patch)
tree9e4ca19dec0aaf02685b068dca81dcdc64808cb0 /tcc.h
parent76adc5770f4ab5b1aaa2e5dde6104efc06431fe2 (diff)
downloadtinycc-0b6652003cba7dbf3b8b2b76564d81cbceacceb0.tar.gz
tinycc-0b6652003cba7dbf3b8b2b76564d81cbceacceb0.tar.bz2
Revert "Add a --multiarch-triplet switch to configure"
This reverts commit 76adc5770f4ab5b1aaa2e5dde6104efc06431fe2.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h34
1 files changed, 31 insertions, 3 deletions
diff --git a/tcc.h b/tcc.h
index 6cf60d8..f8ad00c 100644
--- a/tcc.h
+++ b/tcc.h
@@ -139,9 +139,37 @@
#define true 1
typedef int BOOL;
-/* See definition of default values of CONFIG_TCC_LDDIR, CONFIG_TCC_CRT_PREFIX,
- CONFIG_TCC_SYSINCLUDE_PATHS and CONFIG_TCC_LIBPATH in config.h or configure
- */
+#ifndef CONFIG_TCC_LDDIR
+ #if defined(TCC_TARGET_X86_64_CENTOS)
+ #define CONFIG_TCC_LDDIR "/lib64"
+ #else
+ #define CONFIG_TCC_LDDIR "/lib"
+ #endif
+#endif
+
+/* path to find crt1.o, crti.o and crtn.o */
+#ifndef CONFIG_TCC_CRT_PREFIX
+# define CONFIG_TCC_CRT_PREFIX "/usr" CONFIG_TCC_LDDIR
+#endif
+
+#ifndef CONFIG_TCC_SYSINCLUDE_PATHS
+# ifdef TCC_TARGET_PE
+# define CONFIG_TCC_SYSINCLUDE_PATHS "\b/include;\b/include/winapi"
+# else
+# define CONFIG_TCC_SYSINCLUDE_PATHS "/usr/local/include:/usr/include:\b/include"
+# endif
+#endif
+
+#ifndef CONFIG_TCC_LIBPATH
+# ifdef TCC_TARGET_PE
+# define CONFIG_TCC_LIBPATH "\b/lib"
+# else
+# define CONFIG_TCC_LIBPATH \
+ CONFIG_SYSROOT CONFIG_TCC_CRT_PREFIX \
+ ":" CONFIG_SYSROOT CONFIG_TCC_LDDIR \
+ ":" CONFIG_SYSROOT "/usr/local" CONFIG_TCC_LDDIR
+# endif
+#endif
#define INCLUDE_STACK_SIZE 32
#define IFDEF_STACK_SIZE 64