]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
gcc: fix libstdc++ symbol versioning (wrong linker detection).
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 29 Aug 2011 22:20:20 +0000 (00:20 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 29 Aug 2011 22:20:20 +0000 (00:20 +0200)
lfs/gcc
src/patches/gcc-4.1.2-fix_linker_version_detection.patch [new file with mode: 0644]

diff --git a/lfs/gcc b/lfs/gcc
index 40d779dcff8f396562d59a3fdaf0430c2cd87b4d..af87e21164eff2f8935c1751af1db5fafaa00ba8 100644 (file)
--- a/lfs/gcc
+++ b/lfs/gcc
@@ -110,6 +110,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) $(DIR_SRC)/gcc-build && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-fix_linker_version_detection.patch
        @mkdir $(DIR_SRC)/gcc-build
 ifeq "$(ROOT)" ""
        cd $(DIR_APP) && sed -i 's/install_to_$$(INSTALL_DEST) //' libiberty/Makefile.in
diff --git a/src/patches/gcc-4.1.2-fix_linker_version_detection.patch b/src/patches/gcc-4.1.2-fix_linker_version_detection.patch
new file mode 100644 (file)
index 0000000..c2f43be
--- /dev/null
@@ -0,0 +1,12 @@
+diff -Naur gcc-4.1.2.org/libstdc++-v3/configure gcc-4.1.2/libstdc++-v3/configure
+--- gcc-4.1.2.org/libstdc++-v3/configure       2007-01-29 11:51:01.000000000 +0100
++++ gcc-4.1.2/libstdc++-v3/configure   2011-08-29 19:25:22.973430586 +0200
+@@ -8281,7 +8281,7 @@
+   if test x"$with_gnu_ld" = x"yes"; then
+     ldver=`$LD --version 2>/dev/null | head -1 | \
+-           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++           sed -e 's/GNU ld (GNU binutils) \([0-9.][0-9.]*\).*/\1/'`
+     glibcxx_gnu_ld_version=`echo $ldver | \
+            $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`