diff options
| author | Henry Kroll III <henry@comptune.com> | 2010-11-25 02:57:19 -0800 |
|---|---|---|
| committer | Henry Kroll III <henry@comptune.com> | 2010-11-25 02:57:19 -0800 |
| commit | f1c9f649da5b852929e537101edbbaabe99cb90c (patch) | |
| tree | a86f04427f1dc309df73aefae25cbd091eecbf40 /tccelf.c | |
| parent | 9036c18170ce5fdf386ef7f19b81e852b0a7b3e8 (diff) | |
| download | tinycc-f1c9f649da5b852929e537101edbbaabe99cb90c.tar.gz tinycc-f1c9f649da5b852929e537101edbbaabe99cb90c.tar.bz2 | |
x86_64: fix --with-libgcc and simplify biarch paths
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1251,7 +1251,7 @@ ST_FUNC void tcc_add_runtime(TCCState *s1) if (!s1->nostdlib) { #ifdef CONFIG_USE_LIBGCC tcc_add_library(s1, "c"); - tcc_add_file(s1, CONFIG_SYSROOT "/lib/libgcc_s.so.1"); + tcc_add_file(s1, CONFIG_TCC_LDDIR"/libgcc_s.so.1"); #else tcc_add_library(s1, "c"); #ifndef WITHOUT_LIBTCC @@ -1337,11 +1337,7 @@ static char elf_interp[] = "/lib/ld.so.1"; #elif defined TCC_ARM_EABI static const char elf_interp[] = "/lib/ld-linux.so.3"; #elif defined(TCC_TARGET_X86_64) -# if defined(TCC_TARGET_X86_64_CENTOS) -static const char elf_interp[] = "/lib64/ld-linux-x86-64.so.2"; -# else -static const char elf_interp[] = "/lib/ld-linux-x86-64.so.2"; -# endif /* TCC_TARGET_X86_64_CENTOS */ +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"; #else |
