Index: ld/emulparams/elf_i386.sh =================================================================== --- ld/emulparams/elf_i386.sh.orig 2009-07-29 16:59:23.000000000 +0200 +++ ld/emulparams/elf_i386.sh 2011-04-19 14:51:40.000000000 +0200 @@ -12,4 +12,9 @@ GENERATE_SHLIB_SCRIPT=yes GENERATE_PIE_SCRIPT=yes NO_SMALL_DATA=yes SEPARATE_GOTPLT=12 + +# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first. +case "$EMULATION_NAME" in + *64*) LIBPATH_SUFFIX=64 ;; +esac IREL_IN_PLT=