aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2011-02-23 21:10:35 +0100
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2011-02-23 22:04:30 +0100
commitbc56218e9e7982ba5289afbc57c937252898d052 (patch)
tree94136fa283e63bff82e85c03ee194c3477df27a8 /recipes/gcc
parent3116d890c4480004f93920abab7f0502507c2150 (diff)
downloadopenembedded-bc56218e9e7982ba5289afbc57c937252898d052.tar.gz
gcc 4.1.2: fix dependency_libs for libstdc++ and libsupc++
This fixes a QA issue in gcc 4.1.2. The patch is identical to what is done in gcc 4.2.2 and 4.2.4 The issues caused neek compilations to fail Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com> (on irc)
Diffstat (limited to 'recipes/gcc')
-rw-r--r--recipes/gcc/gcc-4.1.2.inc15
1 files changed, 14 insertions, 1 deletions
diff --git a/recipes/gcc/gcc-4.1.2.inc b/recipes/gcc/gcc-4.1.2.inc
index 36b45db41d..9df67e24e9 100644
--- a/recipes/gcc/gcc-4.1.2.inc
+++ b/recipes/gcc/gcc-4.1.2.inc
@@ -5,7 +5,7 @@ NATIVEDEPS = "mpfr-native gmp-native"
COMPATIBLE_TARGET_SYS = "."
-INC_PR = "r27"
+INC_PR = "r28"
SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2;name=archive \
file://100-uclibc-conf.patch \
@@ -60,6 +60,19 @@ do_compile_prepend_avr32() {
ln -sf ${S}/libstdc++-v3/config/os/uclibc/ ${S}/libstdc++-v3/config/os/uclibc-linux
}
+# 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 = ""