From: Robert Yang Date: Fri, 14 Dec 2018 09:50:20 +0000 (+0800) Subject: bitbake.conf: Enable -fdebug-prefix-map for nativesdk X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~15654 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0b4d1b32203bb74fc3aec9b9a0d14bf7a52a0af;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake.conf: Enable -fdebug-prefix-map for nativesdk Files like lib/.debug/libgcc_s.so.1 from nativesdk-libgcc-dbg contains buildpath without -fdebug-prefix-map, the root cause is object files (.o) contain buildpath, and then ccache can't use them correctly. Signed-off-by: Robert Yang --- diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 30bb35c2afc..0bdcd04d745 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -558,7 +558,7 @@ export CPPFLAGS = "${TARGET_CPPFLAGS}" export TARGET_CPPFLAGS = "" export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" -BUILDSDK_CFLAGS = "${BUILDSDK_CPPFLAGS} ${BUILD_OPTIMIZATION}" +BUILDSDK_CFLAGS = "${BUILDSDK_CPPFLAGS} ${BUILD_OPTIMIZATION} ${DEBUG_PREFIX_MAP}" export CFLAGS = "${TARGET_CFLAGS}" export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}"