]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf: Enable -fdebug-prefix-map for nativesdk
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 14 Dec 2018 09:50:20 +0000 (17:50 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Jan 2019 11:21:57 +0000 (11:21 +0000)
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 <liezhi.yang@windriver.com>
meta/conf/bitbake.conf

index 30bb35c2afc937c95d3b73decdb3d3ec9b935103..0bdcd04d74537bbd269857a9d8f5a44d9c46b668 100644 (file)
@@ -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}"