diff options
author | Maxim Kuvyrkov <maxim@kugelworks.com> | 2012-11-16 04:00:41 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim@kugelworks.com> | 2012-11-16 04:00:41 +0000 |
commit | 507dcd87bdc4db420d7e008ef77c1d0c2f2914b1 (patch) | |
tree | 685e5676a3f55e3db52b2de247aa1a8247d38d86 /ld/emulparams | |
parent | c0f7459eb8cb7dd753c0d4dd55a5273a14271459 (diff) | |
download | gdb-507dcd87bdc4db420d7e008ef77c1d0c2f2914b1.zip gdb-507dcd87bdc4db420d7e008ef77c1d0c2f2914b1.tar.gz gdb-507dcd87bdc4db420d7e008ef77c1d0c2f2914b1.tar.bz2 |
Port lib32 arangement from Debian.
* emulparams/elf_i386.sh: Include lib32 directories in library search
path.
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/elf_i386.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/emulparams/elf_i386.sh b/ld/emulparams/elf_i386.sh index 665a1ad..add700f 100644 --- a/ld/emulparams/elf_i386.sh +++ b/ld/emulparams/elf_i386.sh @@ -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 |