summaryrefslogtreecommitdiff
path: root/meta/packages/gcc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-06-07 23:08:02 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-06-07 23:09:00 +0100
commit2f7b3e3f31913cdbb3b359d856b10fe52a7be26b (patch)
tree7a94330e88360f470e75e202e478a15cb8bdd476 /meta/packages/gcc
parent6118da2a7f91979d14fda968805a8c69f0de42e4 (diff)
downloadopenembedded-core-2f7b3e3f31913cdbb3b359d856b10fe52a7be26b.tar.gz
openembedded-core-2f7b3e3f31913cdbb3b359d856b10fe52a7be26b.tar.bz2
openembedded-core-2f7b3e3f31913cdbb3b359d856b10fe52a7be26b.zip
gcc-runtime: Make sure multiple target builds work correctly
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/gcc')
-rw-r--r--meta/packages/gcc/gcc-configure-runtime.inc2
-rw-r--r--meta/packages/gcc/gcc-package-cross.inc6
2 files changed, 4 insertions, 4 deletions
diff --git a/meta/packages/gcc/gcc-configure-runtime.inc b/meta/packages/gcc/gcc-configure-runtime.inc
index 6716b0deed..7b43aabf99 100644
--- a/meta/packages/gcc/gcc-configure-runtime.inc
+++ b/meta/packages/gcc/gcc-configure-runtime.inc
@@ -13,7 +13,7 @@ RUNTIMETARGET = "libgcc libssp libstdc++-v3"
# libgfortran
do_configure () {
- cp ${STAGING_DIR_NATIVE}${prefix_native}/include/gcc-build-internal/* ${S}/gcc
+ cp ${STAGING_DIR_NATIVE}${prefix_native}/include/gcc-build-internal-${TARGET_SYS}/* ${S}/gcc
for d in ${RUNTIMETARGET}; do
echo "Configuring $d"
mkdir -p ${B}/$d/
diff --git a/meta/packages/gcc/gcc-package-cross.inc b/meta/packages/gcc/gcc-package-cross.inc
index 86f973e885..e0b622b8c1 100644
--- a/meta/packages/gcc/gcc-package-cross.inc
+++ b/meta/packages/gcc/gcc-package-cross.inc
@@ -20,14 +20,14 @@ do_install () {
if [ "${PN}" == "gcc-cross" -o "${PN}" == "gcc-crosssdk" ]; then
install -d ${D}${includedir}/gcc-build-internal
for f in *.h *.c libgcc.mvars; do
- cp ${B}/gcc/$f ${D}${includedir}/gcc-build-internal/
+ cp ${B}/gcc/$f ${D}${includedir}/gcc-build-internal-${TARGET_SYS}/
done
# Special for PowerPC (and possibly others)
if [ -f ${B}/gcc/tramp.S ]; then
- cp ${B}/gcc/*.S ${D}${includedir}/gcc-build-internal/
+ cp ${B}/gcc/*.S ${D}${includedir}/gcc-build-internal-${TARGET_SYS}/
fi
if [ -f libgcc.mvars]; then
- cp ${B}/gcc/libgcc.mvars ${D}${includedir}/gcc-build-internal/
+ cp ${B}/gcc/libgcc.mvars ${D}${includedir}/gcc-build-internal-${TARGET_SYS}/
fi
fi
}