patches/binutils/2.18.50.0.8/100-arm-uclibcgnueabi.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Apr 02 21:58:34 2009 +0000 (2009-04-02)
changeset 1287 2a70bb65824e
permissions -rw-r--r--
Speaking of gcc-4.2.1, Ted Jordan writes on 20090401:
The generated libtool for building libstdc++ adds the -nostdlib option to the
g++ command for linking but doesn't add -lgcc. This causes a "hidden symbol"
error when linking against the libstdc++ shared object. This patch adds gcc
to the list of libraries linked against when linking libstdc++.

/trunk/patches/gcc/4.2.1/300-libstdc++-nostdlib-linking.patch | 21 21 0 0 +++++++++++++++++
1 file changed, 21 insertions(+)
yann@652
     1
diff -durN binutils-2.18.50.0.8.orig/configure binutils-2.18.50.0.8/configure
yann@652
     2
--- binutils-2.18.50.0.8.orig/configure	2008-07-10 17:32:56.000000000 +0200
yann@652
     3
+++ binutils-2.18.50.0.8/configure	2008-07-13 23:08:13.000000000 +0200
yann@652
     4
@@ -2313,7 +2313,7 @@
yann@652
     5
     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
yann@652
     6
     libgloss_dir=arm
yann@652
     7
     ;;
yann@652
     8
-  arm*-*-linux-gnueabi)
yann@652
     9
+  arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
yann@652
    10
     noconfigdirs="$noconfigdirs target-qthreads"
yann@652
    11
     case ${with_newlib} in
yann@652
    12
       no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
yann@652
    13
diff -durN binutils-2.18.50.0.8.orig/configure.ac binutils-2.18.50.0.8/configure.ac
yann@652
    14
--- binutils-2.18.50.0.8.orig/configure.ac	2008-07-10 17:32:56.000000000 +0200
yann@652
    15
+++ binutils-2.18.50.0.8/configure.ac	2008-07-13 23:08:13.000000000 +0200
yann@652
    16
@@ -562,7 +562,7 @@
yann@652
    17
     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
yann@652
    18
     libgloss_dir=arm
yann@652
    19
     ;;
yann@652
    20
-  arm*-*-linux-gnueabi)
yann@652
    21
+  arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
yann@652
    22
     noconfigdirs="$noconfigdirs target-qthreads"
yann@652
    23
     case ${with_newlib} in
yann@652
    24
       no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"