From 253bad7993825fc4f2caa3613035b3bfa36821fa Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 28 Jan 2010 08:27:38 +0100 Subject: Added patch to detect and use the paths for 64bit libraries as used by CentOS (affects X86_64 only). --- tccelf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tccelf.c') diff --git a/tccelf.c b/tccelf.c index 2d884d2..f262ac5 100644 --- a/tccelf.c +++ b/tccelf.c @@ -1307,7 +1307,11 @@ static const char elf_interp[] = "/libexec/ld-elf.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 */ #elif defined(TCC_UCLIBC) static const char elf_interp[] = "/lib/ld-uClibc.so.0"; #else -- cgit v1.3.1