summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-02-02 22:43:26 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-15 21:58:25 +0000
commit146f28ad199e59059b221b30f1caec6a7fb55ff8 (patch)
treed4b3f3a7872af0a3e245d047239659f9b4b1c0e7
parent88ad298e77f7305706a0b833793edac120a12d8f (diff)
downloadpoky-146f28ad199e59059b221b30f1caec6a7fb55ff8.tar.gz
gcc-sanitizers: check gcc-build-internal before link
The ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget may not exist when use the external sdk toolchain, we need check before link for it. Fixed: run.do_configure.12538: 149: cd: can't cd to sysroots/x86_64-linux/usr/include/gcc-build-internal-x86_64-wrs-linux (LOCAL REV: NOT UPSTREAM) -- Sent to oe-core on 20150204 (From OE-Core rev: 82166e514438eb1b562f2a4dc2f9f8fecf3f60df) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/gcc/gcc-sanitizers.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers.inc b/meta/recipes-devtools/gcc/gcc-sanitizers.inc
index 35c9247cc1..c987ccb589 100644
--- a/meta/recipes-devtools/gcc/gcc-sanitizers.inc
+++ b/meta/recipes-devtools/gcc/gcc-sanitizers.inc
@@ -14,7 +14,9 @@ EXTRA_OECONF_PATHS = "\
14do_configure () { 14do_configure () {
15 mtarget=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` 15 mtarget=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
16 target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` 16 target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
17 hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B} 17 if [ -d ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ]; then
18 hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B}
19 fi
18 20
19 echo "Configuring libsanitizer" 21 echo "Configuring libsanitizer"
20 rm -rf ${B}/$target/libsanitizer/ 22 rm -rf ${B}/$target/libsanitizer/