summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-01-07 11:35:19 +0000
committerKoen Kooi <koen@openembedded.org>2007-01-07 11:35:19 +0000
commitfbcc4e3db5943fdc05993abe9a9497c0bdab7e96 (patch)
treea79d754c51d87119a08a0b3dcee69e6603ad1c61
parent725b7aeac7588ff4f00c2d46419e75c5eeb79209 (diff)
gcc 4.1.1, gcc3-build-cross.inc: fix libsupc++ and libstdc++ la files with some XorA sed magic
-rw-r--r--packages/gcc/gcc-cross_4.1.1.bb2
-rw-r--r--packages/gcc/gcc3-build-cross.inc4
2 files changed, 5 insertions, 1 deletions
diff --git a/packages/gcc/gcc-cross_4.1.1.bb b/packages/gcc/gcc-cross_4.1.1.bb
index 5721dee50b..f69ab5c8b3 100644
--- a/packages/gcc/gcc-cross_4.1.1.bb
+++ b/packages/gcc/gcc-cross_4.1.1.bb
@@ -5,7 +5,7 @@ inherit cross
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
# NOTE: split PR. If the main .oe changes something that affects its *build*
# remember to increment this one too.
-PR = "r9"
+PR = "r10"
DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc gmp-native mpfr-native"
PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
diff --git a/packages/gcc/gcc3-build-cross.inc b/packages/gcc/gcc3-build-cross.inc
index 62a7bf3b23..1bfdef64c5 100644
--- a/packages/gcc/gcc3-build-cross.inc
+++ b/packages/gcc/gcc3-build-cross.inc
@@ -41,4 +41,8 @@ do_stage_append () {
do
rm -rf ${CROSS_DIR}/$d
done
+
+ #fix up libsupc++ and libstdc++ la files
+ sed -i "s|dependency_libs\s*=\s*.*|dependency_libs = '-L${CROSS_DIR}/${TARGET_SYS}/lib -lgcc_s -lc -lm '|" ${CROSS_DIR}/${TARGET_SYS}/lib/libsupc++.la
+ sed -i "s|dependency_libs\s*=\s*.*|dependency_libs = '-L${CROSS_DIR}/${TARGET_SYS}/lib -lgcc_s -lc -lm '|" ${CROSS_DIR}/${TARGET_SYS}/lib/libstdc++.la
}