summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-04-28 13:14:40 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-01 22:48:17 +0100
commiteb6154c46e0189884dc9b452b4214e0b578f37e0 (patch)
tree70e134d181c85f8b0e93669df9c3738d2cb2d9bc /meta/recipes-devtools/gcc
parent3b33c0870e404680b89ec2c7dcc618fc48f6f130 (diff)
downloadpoky-eb6154c46e0189884dc9b452b4214e0b578f37e0.tar.gz
gcc-runtime: Fix __FILE__ related reproducablity issues
libstdc++ uses assertion macros which use __FILE__ macros and if (__builtin_expect(!bool(_Condition), false)) \ std::__replacement_assert(__FILE__, __LINE__, __PRETTY_FUNCTION__, \ #_Condition) This ends up using absolute paths into build tree for the cases where the charconv header is used, therefore replace the file prefix paths with on-target paths to make them build dir independent (From OE-Core rev: 972c50d6e46ee9dfba8b8ea3867ebdbf24001e6e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-runtime.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
index 2aca96c408..59d9a24686 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -60,6 +60,7 @@ DEBUG_PREFIX_MAP_class-target = " \
60 -fdebug-prefix-map=${S}/libiberty=${REL_S}/libstdc++-v3/../libiberty \ 60 -fdebug-prefix-map=${S}/libiberty=${REL_S}/libstdc++-v3/../libiberty \
61 -fdebug-prefix-map=${S}/libgcc=${REL_S}/libstdc++-v3/../libgcc \ 61 -fdebug-prefix-map=${S}/libgcc=${REL_S}/libstdc++-v3/../libgcc \
62 -fdebug-prefix-map=${B}=${REL_S} \ 62 -fdebug-prefix-map=${B}=${REL_S} \
63 -ffile-prefix-map=${B}/${HOST_SYS}/libstdc++-v3/include=${includedir}/c++/${BINV} \
63 " 64 "
64 65
65do_configure () { 66do_configure () {