Upload Tizen:Base source
[external/binutils.git] / debian / patches / 127_x86_64_i386_biarch.patch
1 Author: 
2 Description: Description: Add (/usr)/lib32 to the search paths on x86_64.
3 Author: Aurelien Jarno <aurel32.debian.org>
4 Upstream status: Debian specific
5 --- a/ld/emulparams/elf_i386.sh
6 +++ b/ld/emulparams/elf_i386.sh
7 @@ -13,3 +13,13 @@
8  NO_SMALL_DATA=yes
9  SEPARATE_GOTPLT=12
10  IREL_IN_PLT=
11 +
12 +# Linux modify the default library search path to first include
13 +# a 32-bit specific directory.
14 +case "$target" in
15 +  x86_64*-linux* | i[3-7]86*-linux* | x86_64*-kfreebsd*-gnu | i[3-7]86*-kfreebsd*-gnu)
16 +    case "$EMULATION_NAME" in
17 +      *i386*) LIBPATH_SUFFIX=32 ;;
18 +    esac
19 +    ;;
20 +esac