aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-03 16:37:44 +0300
committerseyko <seyko2@gmail.com>2015-03-03 16:37:44 +0300
commit2d83ec7aa33e095ae0cc0d61a38bfd6061633811 (patch)
tree91be6133363817204d099f774ac2fd706643832b
parentb5f88b593a580956dfb74b6fb9ba9ab3e178bdf6 (diff)
downloadtinycc-2d83ec7aa33e095ae0cc0d61a38bfd6061633811.tar.gz
tinycc-2d83ec7aa33e095ae0cc0d61a38bfd6061633811.tar.bz2
lddir-on-x86-64: let CONFIG_LDDIR=lib64 by default if TCC_TARGET_X86_64
This is done for the case when CONFIG_LDDIR is not configured. Example: ./configure --enable-cross
-rw-r--r--tcc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tcc.h b/tcc.h
index 34d3248..308cae7 100644
--- a/tcc.h
+++ b/tcc.h
@@ -205,7 +205,11 @@
# define CONFIG_TCCDIR "."
#endif
#ifndef CONFIG_LDDIR
-# define CONFIG_LDDIR "lib"
+# ifdef TCC_TARGET_X86_64
+# define CONFIG_LDDIR "lib64"
+# else
+# define CONFIG_LDDIR "lib"
+# endif
#endif
#ifdef CONFIG_MULTIARCHDIR