aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/binutils/binutils-2.19.1
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2009-04-15 15:48:22 +0400
committerRoman I Khimov <khimov@altell.ru>2009-04-29 09:50:41 +0400
commiteaf85d32077a07dd18c3af3f713949feea3bfbc5 (patch)
tree8712465621ddb11ead98c4ab06a0bc55c4b3803c /recipes/binutils/binutils-2.19.1
parent6422fe2b0a110c3a611c0e98cd96b489d4f11880 (diff)
downloadopenembedded-eaf85d32077a07dd18c3af3f713949feea3bfbc5.tar.gz
binutils: add binutils-x86_64_i386_biarch.patch
Adds 'lib32' directories to binutils search paths on x86_64. Acked-By: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/binutils/binutils-2.19.1')
-rw-r--r--recipes/binutils/binutils-2.19.1/binutils-x86_64_i386_biarch.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes/binutils/binutils-2.19.1/binutils-x86_64_i386_biarch.patch b/recipes/binutils/binutils-2.19.1/binutils-x86_64_i386_biarch.patch
new file mode 100644
index 0000000000..b79a76af37
--- /dev/null
+++ b/recipes/binutils/binutils-2.19.1/binutils-x86_64_i386_biarch.patch
@@ -0,0 +1,25 @@
+#!/bin/sh -e
+## 127_x86_64_i386_biarch.dpatch
+##
+## DP: Description: Add (/usr)/lib32 to the search paths on x86_64.
+## DP: Author: Aurelien Jarno <aurel32.debian.org>
+## DP: Upstream status: Debian specific
+#
+# Hacked to apply with quilt
+
+--- binutils/ld/emulparams/elf_i386.sh
++++ binutils/ld/emulparams/elf_i386.sh
+@@ -12,3 +12,13 @@
+ GENERATE_PIE_SCRIPT=yes
+ NO_SMALL_DATA=yes
+ SEPARATE_GOTPLT=12
++
++# 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* | x86_64*-kfreebsd*-gnu | i[3-7]86*-kfreebsd*-gnu)
++ case "$EMULATION_NAME" in
++ *i386*) LIBPATH_SUFFIX=32 ;;
++ esac
++ ;;
++esac