summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
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-14 22:26:09 +0000
commit82166e514438eb1b562f2a4dc2f9f8fecf3f60df (patch)
tree5069a22d2750ffd6aa6e39e9d8fb08c47e0acff6 /meta/recipes-devtools
parentee152cb5f83c76d81e199dbb7861712a3797f400 (diff)
downloadopenembedded-core-82166e514438eb1b562f2a4dc2f9f8fecf3f60df.tar.gz
openembedded-core-82166e514438eb1b562f2a4dc2f9f8fecf3f60df.tar.bz2
openembedded-core-82166e514438eb1b562f2a4dc2f9f8fecf3f60df.zip
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 Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'meta/recipes-devtools')
-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 = "\
do_configure () {
mtarget=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
- hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B}
+ if [ -d ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ]; then
+ hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B}
+ fi
echo "Configuring libsanitizer"
rm -rf ${B}/$target/libsanitizer/