summaryrefslogtreecommitdiff
path: root/recipes/meta/canadian-sdk.bb
diff options
context:
space:
mode:
authorTom Rini <trini@embeddedalley.com>2009-04-17 16:24:46 -0400
committerTom Rini <trini@embeddedalley.com>2009-04-17 16:24:46 -0400
commitc8b3cc5ef81d305d5d90644da36acbc40c7c01f1 (patch)
treec5780e1ec137dd4cf71d54ba07e41d7795148b75 /recipes/meta/canadian-sdk.bb
parent49a720ff8597243a906d7c0f9278ca8f1f9ff670 (diff)
parenta4f79016c537fc93e5a487d51a22fb4d01e9afe8 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/meta/canadian-sdk.bb')
-rw-r--r--recipes/meta/canadian-sdk.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/recipes/meta/canadian-sdk.bb b/recipes/meta/canadian-sdk.bb
index 150c75222b..9126c7e872 100644
--- a/recipes/meta/canadian-sdk.bb
+++ b/recipes/meta/canadian-sdk.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "Meta package for building a installable toolchain"
LICENSE = "MIT"
DEPENDS = "ipkg-native ipkg-utils-native fakeroot-native sed-native zip-native"
-PR = "r2"
+PR = "r3"
inherit canadian-sdk meta
@@ -100,6 +100,12 @@ do_populate_sdk() {
# gcc-cross-sdk get built :( (30/11/07)
ln -sf libgcc_s.so.1 ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/libgcc_s.so
+ # With sysroot support, gcc expects the default C++ headers to be
+ # in a specific place.
+ install -d ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include
+ mv ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/usr/include/c++ \
+ ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/
+
# Fix or remove broken .la files
for i in `find ${SDK_OUTPUT}/${prefix}/${TARGET_SYS} -name \*.la`; do
sed -i -e "/^dependency_libs=/s,\([[:space:]']\)${layout_base_libdir},\1${prefix}/${TARGET_SYS}${layout_base_libdir},g" \