diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-sanitizers.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-sanitizers.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers.inc b/meta/recipes-devtools/gcc/gcc-sanitizers.inc index df4e297a48..ae3afe00b3 100644 --- a/meta/recipes-devtools/gcc/gcc-sanitizers.inc +++ b/meta/recipes-devtools/gcc/gcc-sanitizers.inc | |||
@@ -12,11 +12,7 @@ EXTRA_OECONF_PATHS = "\ | |||
12 | " | 12 | " |
13 | 13 | ||
14 | do_configure () { | 14 | do_configure () { |
15 | mtarget=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` | ||
16 | target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` | 15 | target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` |
17 | if [ -d ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ]; then | ||
18 | hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B} | ||
19 | fi | ||
20 | 16 | ||
21 | echo "Configuring libsanitizer" | 17 | echo "Configuring libsanitizer" |
22 | rm -rf ${B}/$target/libsanitizer/ | 18 | rm -rf ${B}/$target/libsanitizer/ |
@@ -31,6 +27,8 @@ do_configure () { | |||
31 | # Link to the sysroot's libstdc++ instead of one gcc thinks it just built | 27 | # Link to the sysroot's libstdc++ instead of one gcc thinks it just built |
32 | sed -i -e '/LIBSTDCXX_RAW_CXX_\(CXXFLAGS\|LDFLAGS\)\s*=/d' ${B}/$target/libsanitizer/*/Makefile | 28 | sed -i -e '/LIBSTDCXX_RAW_CXX_\(CXXFLAGS\|LDFLAGS\)\s*=/d' ${B}/$target/libsanitizer/*/Makefile |
33 | } | 29 | } |
30 | EXTRACONFFUNCS += "extract_stashed_builddir" | ||
31 | do_configure[depends] += "${COMPILERDEP}" | ||
34 | 32 | ||
35 | do_compile () { | 33 | do_compile () { |
36 | target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` | 34 | target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` |