From 231c5d93b0c0af68e5274b21a6fa82b67adb9291 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 30 Oct 2012 12:42:04 -0700 Subject: [PATCH] x86-64-biarch --- ld/emulparams/elf_i386.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ld/emulparams/elf_i386.sh b/ld/emulparams/elf_i386.sh index 93f1992..e23ad5f 100644 --- a/ld/emulparams/elf_i386.sh +++ b/ld/emulparams/elf_i386.sh @@ -12,6 +12,11 @@ GENERATE_SHLIB_SCRIPT=yes GENERATE_PIE_SCRIPT=yes NO_SMALL_DATA=yes SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 12 ? 12 : 0" + +# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first. +case "$EMULATION_NAME" in + *64*) LIBPATH_SUFFIX=64 ;; +esac IREL_IN_PLT= # Linux modify the default library search path to first include -- 2.7.4