diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-06-07 23:08:02 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-06-07 23:09:00 +0100 |
commit | 2f7b3e3f31913cdbb3b359d856b10fe52a7be26b (patch) | |
tree | 7a94330e88360f470e75e202e478a15cb8bdd476 /meta | |
parent | 6118da2a7f91979d14fda968805a8c69f0de42e4 (diff) | |
download | poky-2f7b3e3f31913cdbb3b359d856b10fe52a7be26b.tar.gz |
gcc-runtime: Make sure multiple target builds work correctly
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/gcc/gcc-configure-runtime.inc | 2 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-package-cross.inc | 6 |
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" | |||
13 | # libgfortran | 13 | # libgfortran |
14 | 14 | ||
15 | do_configure () { | 15 | do_configure () { |
16 | cp ${STAGING_DIR_NATIVE}${prefix_native}/include/gcc-build-internal/* ${S}/gcc | 16 | cp ${STAGING_DIR_NATIVE}${prefix_native}/include/gcc-build-internal-${TARGET_SYS}/* ${S}/gcc |
17 | for d in ${RUNTIMETARGET}; do | 17 | for d in ${RUNTIMETARGET}; do |
18 | echo "Configuring $d" | 18 | echo "Configuring $d" |
19 | mkdir -p ${B}/$d/ | 19 | 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 () { | |||
20 | if [ "${PN}" == "gcc-cross" -o "${PN}" == "gcc-crosssdk" ]; then | 20 | if [ "${PN}" == "gcc-cross" -o "${PN}" == "gcc-crosssdk" ]; then |
21 | install -d ${D}${includedir}/gcc-build-internal | 21 | install -d ${D}${includedir}/gcc-build-internal |
22 | for f in *.h *.c libgcc.mvars; do | 22 | for f in *.h *.c libgcc.mvars; do |
23 | cp ${B}/gcc/$f ${D}${includedir}/gcc-build-internal/ | 23 | cp ${B}/gcc/$f ${D}${includedir}/gcc-build-internal-${TARGET_SYS}/ |
24 | done | 24 | done |
25 | # Special for PowerPC (and possibly others) | 25 | # Special for PowerPC (and possibly others) |
26 | if [ -f ${B}/gcc/tramp.S ]; then | 26 | if [ -f ${B}/gcc/tramp.S ]; then |
27 | cp ${B}/gcc/*.S ${D}${includedir}/gcc-build-internal/ | 27 | cp ${B}/gcc/*.S ${D}${includedir}/gcc-build-internal-${TARGET_SYS}/ |
28 | fi | 28 | fi |
29 | if [ -f libgcc.mvars]; then | 29 | if [ -f libgcc.mvars]; then |
30 | cp ${B}/gcc/libgcc.mvars ${D}${includedir}/gcc-build-internal/ | 30 | cp ${B}/gcc/libgcc.mvars ${D}${includedir}/gcc-build-internal-${TARGET_SYS}/ |
31 | fi | 31 | fi |
32 | fi | 32 | fi |
33 | } | 33 | } |