]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-runtime: Make sure multiple target builds work correctly
authorRichard Purdie <rpurdie@linux.intel.com>
Mon, 7 Jun 2010 22:08:02 +0000 (23:08 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 7 Jun 2010 22:09:00 +0000 (23:09 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/packages/gcc/gcc-configure-runtime.inc
meta/packages/gcc/gcc-package-cross.inc

index 6716b0deed412f702778a017140be840e11290be..7b43aabf997d653d3b8c72cfd0f04e4770011bcf 100644 (file)
@@ -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/
index 86f973e88535369f7f321c766bb6d869e39c957a..e0b622b8c1acc6f7077f3eea4ef243d9e9b6f68d 100644 (file)
@@ -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
 }