aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@celest.fr>2011-07-08 11:16:34 +0200
committerThomas Preud'homme <thomas.preudhomme@celest.fr>2011-07-08 11:16:34 +0200
commit5cf5871aafa0032ec54fc76b11c06f2217409e46 (patch)
tree891fd51d0d3f5b71f06def36d1bc8b2d8b1bea62
parent13121e220cb2b8ddbe1b4218b1734843493a95c8 (diff)
downloadtinycc-5cf5871aafa0032ec54fc76b11c06f2217409e46.tar.gz
tinycc-5cf5871aafa0032ec54fc76b11c06f2217409e46.tar.bz2
Use CONFIG_TCC_LDDIR for ld.so on all linux archs
-rw-r--r--tccelf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tccelf.c b/tccelf.c
index 8d91daa..3c34501 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -1335,15 +1335,15 @@ ST_FUNC void tcc_add_linker_symbols(TCCState *s1)
#if defined __FreeBSD__
static const char elf_interp[] = "/libexec/ld-elf.so.1";
#elif defined __FreeBSD_kernel__
-static char elf_interp[] = "/lib/ld.so.1";
+static char elf_interp[] = CONFIG_TCC_LDDIR"/ld.so.1";
#elif defined TCC_ARM_EABI
-static const char elf_interp[] = "/lib/ld-linux.so.3";
+static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-linux.so.3";
#elif defined(TCC_TARGET_X86_64)
static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-linux-x86-64.so.2";
#elif defined(TCC_UCLIBC)
-static const char elf_interp[] = "/lib/ld-uClibc.so.0";
+static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-uClibc.so.0";
#else
-static const char elf_interp[] = "/lib/ld-linux.so.2";
+static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-linux.so.2";
#endif
static void tcc_output_binary(TCCState *s1, FILE *f,