Port lib32 arangement from Debian.
authorMaxim Kuvyrkov <maxim@kugelworks.com>
Fri, 16 Nov 2012 04:00:41 +0000 (04:00 +0000)
committerMaxim Kuvyrkov <maxim@kugelworks.com>
Fri, 16 Nov 2012 04:00:41 +0000 (04:00 +0000)
* emulparams/elf_i386.sh: Include lib32 directories in library search
path.

ld/ChangeLog
ld/emulparams/elf_i386.sh

index 2b0a3e41ed62f8b4a7e88efdbfd0c6429efc0e26..fa4b9d07328f5534a44d828c8a0e5750a8e74b3b 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
+
+       Port lib32 arangement from Debian.
+       * emulparams/elf_i386.sh: Include lib32 directories in library search
+       path.
+
 2012-11-15  Simon Baldwin  <simonb@google.com>
 
        * ldmain.c (main): Add start_sbrk set to sbrk(0) on entry.
index 665a1ad36600a195cbd20e88ae470c3f7285b6ce..add700ff50a007fa647ad31046c5578fbab301a4 100644 (file)
@@ -13,3 +13,13 @@ GENERATE_PIE_SCRIPT=yes
 NO_SMALL_DATA=yes
 SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 12 ? 12 : 0"
 IREL_IN_PLT=
+
+# Linux modify the default library search path to first include
+# a 32-bit specific directory.
+case "$target" in
+  x86_64*-linux* | i[3-7]86*-linux*)
+    case "$EMULATION_NAME" in
+      *i386*) LIBPATH_SUFFIX=32 ;;
+    esac
+    ;;
+esac