aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 = " \