[oe-commits] Graeme Gregory : gcc-4.2.2.inc : to fix avr32 build apply the same . la file mangling as the
git version control
git at git.openembedded.org
Tue Jan 4 12:47:46 UTC 2011
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 8d51ba82b84e12420cace5c37ead5012c64c1b64
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=8d51ba82b84e12420cace5c37ead5012c64c1b64
Author: Graeme Gregory <dp at xora.org.uk>
Date: Tue Jan 4 12:44:51 2011 +0000
gcc-4.2.2.inc : to fix avr32 build apply the same .la file mangling as the
gcc 4.2.4. I see the same problem as is commented on in the 4.2.4 file.
---
recipes/gcc/gcc-4.2.2.inc | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/recipes/gcc/gcc-4.2.2.inc b/recipes/gcc/gcc-4.2.2.inc
index bf31f78..a181513 100644
--- a/recipes/gcc/gcc-4.2.2.inc
+++ b/recipes/gcc/gcc-4.2.2.inc
@@ -76,6 +76,20 @@ PACKAGE_ARCH_ep93xx = "${MACHINE_ARCH}"
SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.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 = ""
FORTRAN_linux-gnueabi = ",fortran"
More information about the Openembedded-commits
mailing list