aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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