summaryrefslogtreecommitdiffstats
path: root/recipes/gcc/gcc-4.2.4.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-06-06 10:40:01 -0700
committerKhem Raj <raj.khem@gmail.com>2010-06-06 10:40:01 -0700
commit457d5b9818e21492a1425d8b6811cf57702394eb (patch)
treec009a8b8ab3d608399028630e4daf0d8d487d29f /recipes/gcc/gcc-4.2.4.inc
parentc070de32d40dd561b63de5b4f41baa3cf822ef5b (diff)
downloadopenembedded-457d5b9818e21492a1425d8b6811cf57702394eb.tar.gz
gcc-4.2.4: Fix libstdc++ build failures with new sysrooted staging.
* New sysrooted staging exposed few problems in GCC configury which were latent previously. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/gcc/gcc-4.2.4.inc')
-rw-r--r--recipes/gcc/gcc-4.2.4.inc15
1 files changed, 14 insertions, 1 deletions
diff --git a/recipes/gcc/gcc-4.2.4.inc b/recipes/gcc/gcc-4.2.4.inc
index d2a6b3eea2..e072731f7e 100644
--- a/recipes/gcc/gcc-4.2.4.inc
+++ b/recipes/gcc/gcc-4.2.4.inc
@@ -4,7 +4,7 @@ LICENSE = "GPLv3"
DEPENDS = "mpfr gmp"
NATIVEDEPS = "mpfr-native gmp-native"
-INC_PR = "r10"
+INC_PR = "r11"
SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2;name=archive \
file://100-uclibc-conf.patch \
@@ -39,6 +39,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2;name=archive \
file://gcc-4.0.2-e300c2c3.patch \
file://fortran-static-linking.patch \
file://intermask-bigendian.patch \
+ file://libstdc++-hack-libtool-remove-lstdc++.patch \
"
SRC_URI_append_ep93xx = " \
@@ -77,7 +78,19 @@ SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch "
SRC_URI_append_sh4 = " file://sh_unwind.patch \
file://cppdefault_cross.patch \
"
+# with sysroot this change is not needed for gcc 4.3+ but its needed
+# for older compilers because of bug in libtool as well as this PR
+# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5291
+# we append the .la munging specially for libstdc++ and libsupc++ here
+# This change if needed for other compilers in use should be put
+# in there specific inc file.
+do_install_append () {
+ for d in ${target_libdir} ${target_libdir}/nof; do
+ sed -i "s|dependency_libs\s*=\s*.*|dependency_libs='-lm '|" ${D}$d/libsupc++.la || true
+ sed -i "s|dependency_libs\s*=\s*.*|dependency_libs='-lm '|" ${D}$d/libstdc++.la || true
+ done
+}
# Language Overrides
FORTRAN = ""