mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 09:32:14 +02:00
go-cross-canadian: set default value of DEBUG_PREFIX_MAP
It uses gcc on build machine during go-cross-canadian bootstrap, but the gcc version may be old and not support option '-fmacro-prefix-map' which is one of default values of DEBUG_PREFIX_MAP. So set default value of DEBUG_PREFIX_MAP for go-cross-canadian. (From OE-Core rev: bd19d2b138e1a7fbfdf0b7a7dec0bc04a3aaa219) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -5,6 +5,14 @@ DEPENDS = "go-native virtual/${HOST_PREFIX}go-crosssdk virtual/nativesdk-${HOST_
|
||||
virtual/nativesdk-${HOST_PREFIX}compilerlibs"
|
||||
PN = "go-cross-canadian-${TRANSLATED_TARGET_ARCH}"
|
||||
|
||||
# it uses gcc on build machine during go-cross-canadian bootstrap, but
|
||||
# the gcc version may be old and not support option '-fmacro-prefix-map'
|
||||
# which is one of default values of DEBUG_PREFIX_MAP
|
||||
DEBUG_PREFIX_MAP = "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
|
||||
-fdebug-prefix-map=${STAGING_DIR_HOST}= \
|
||||
-fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
|
||||
"
|
||||
|
||||
export GOHOSTOS = "${BUILD_GOOS}"
|
||||
export GOHOSTARCH = "${BUILD_GOARCH}"
|
||||
export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
|
||||
|
||||
Reference in New Issue
Block a user