aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2009-04-21 21:27:31 +0400
committerRoman I Khimov <khimov@altell.ru>2009-08-18 23:23:59 +0400
commit0064f5975a11043634cc202f8288af4eb7b252bb (patch)
treee7ea4c4fde39e6c008009d65243f3a577f2011ed
parente5d6d7fc0f006844a3738b1d519ecfbb5bd9d8f5 (diff)
downloadopenembedded-0064f5975a11043634cc202f8288af4eb7b252bb.tar.gz
openembedded-0064f5975a11043634cc202f8288af4eb7b252bb.tar.bz2
openembedded-0064f5975a11043634cc202f8288af4eb7b252bb.zip
gcc: add gcc-fix-glibc-dynamic-linker-amd64.patch
-rw-r--r--recipes/gcc/files/gcc-fix-glibc-dynamic-linker-amd64.patch14
-rw-r--r--recipes/gcc/gcc-4.2.4.inc1
2 files changed, 15 insertions, 0 deletions
diff --git a/recipes/gcc/files/gcc-fix-glibc-dynamic-linker-amd64.patch b/recipes/gcc/files/gcc-fix-glibc-dynamic-linker-amd64.patch
new file mode 100644
index 0000000000..cc363210dd
--- /dev/null
+++ b/recipes/gcc/files/gcc-fix-glibc-dynamic-linker-amd64.patch
@@ -0,0 +1,14 @@
+OE's glibc builds with dynamic linker installed in /lib, so for OE-built
+software we fix dynamic linker used by GCC and we provide then compatibility
+hooks for third-party software.
+--- a/gcc/config/i386/linux64.h 2009-04-20 13:25:49.366506316 +0400
++++ b/gcc/config/i386/linux64.h 2009-04-20 13:27:58.687506336 +0400
+@@ -49,7 +49,7 @@
+ done. */
+
+ #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
+-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
++#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-linux-x86-64.so.2"
+
+ #undef LINK_SPEC
+ #define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
diff --git a/recipes/gcc/gcc-4.2.4.inc b/recipes/gcc/gcc-4.2.4.inc
index e8a602342a..58393ce6a3 100644
--- a/recipes/gcc/gcc-4.2.4.inc
+++ b/recipes/gcc/gcc-4.2.4.inc
@@ -39,6 +39,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
file://fortran-static-linking.patch;patch=1 \
file://intermask-bigendian.patch;patch=1 \
file://gcc-multilib64dir.patch;patch=1;pnum=0 \
+ file://gcc-fix-glibc-dynamic-linker-amd64.patch;patch=1 \
"
SRC_URI_append_ep93xx = " \