diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-sanitizers.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-sanitizers.inc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers.inc b/meta/recipes-devtools/gcc/gcc-sanitizers.inc index a7b5d71fa0..03627ffc4b 100644 --- a/meta/recipes-devtools/gcc/gcc-sanitizers.inc +++ b/meta/recipes-devtools/gcc/gcc-sanitizers.inc | |||
@@ -21,19 +21,14 @@ do_configure () { | |||
21 | echo "Configuring libsanitizer" | 21 | echo "Configuring libsanitizer" |
22 | rm -rf ${B}/$target/libsanitizer/ | 22 | rm -rf ${B}/$target/libsanitizer/ |
23 | mkdir -p ${B}/$target/libsanitizer/ | 23 | mkdir -p ${B}/$target/libsanitizer/ |
24 | # This is kind of gross, but it's an easy way to make configure happy | ||
25 | # without hacking it up to use the system stdc++ instead of the one it | ||
26 | # expects to be newly built. | ||
27 | rm -rf ${B}/$target/libstdc++-v3/ | ||
28 | mkdir -p ${B}/$target/libstdc++-v3/src/ | ||
29 | ln -s ${STAGING_LIBDIR}/libstdc++.la ${B}/$target/libstdc++-v3/src/ | ||
30 | ln -s ${STAGING_LIBDIR}/libstdc++.so ${B}/$target/libstdc++-v3/src/ | ||
31 | cd ${B}/$target/libsanitizer/ | 24 | cd ${B}/$target/libsanitizer/ |
32 | chmod a+x ${S}/libsanitizer/configure | 25 | chmod a+x ${S}/libsanitizer/configure |
33 | ${S}/libsanitizer/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} | 26 | ${S}/libsanitizer/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} |
34 | # Easiest way to stop bad RPATHs getting into the library since we have a | 27 | # Easiest way to stop bad RPATHs getting into the library since we have a |
35 | # broken libtool here | 28 | # broken libtool here |
36 | sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' ${B}/$target/libsanitizer/libtool | 29 | sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' ${B}/$target/libsanitizer/libtool |
30 | # Link to the sysroot's libstdc++ instead of one gcc thinks it just built | ||
31 | sed -i -e '/LIBSTDCXX_RAW_CXX_\(CXXFLAGS\|LDFLAGS\)\s*=/d' ${B}/$target/libsanitizer/*/Makefile | ||
37 | } | 32 | } |
38 | 33 | ||
39 | do_compile () { | 34 | do_compile () { |