mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 05:02:21 +02:00
go-runtime: remove unneeded nativesdk override, rename variable
since GO_LDFLAGS is also used by the dist tool, and it's confusing to use a variable with the same name (but not exported, so unused by make.bash/dist). (From OE-Core rev: b5ee166307ea095c77237e06744dff6810800bad) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
98fb2735cc
commit
b949ac0f5e
@@ -17,9 +17,7 @@ export CGO_CXXFLAGS = "${CXXFLAGS}"
|
||||
export CGO_LDFLAGS = "${LDFLAGS}"
|
||||
|
||||
GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}"
|
||||
GO_LINKMODE ?= ""
|
||||
GO_LINKMODE_class-nativesdk = "--linkmode=external"
|
||||
GO_LDFLAGS ?= '-ldflags="${GO_LINKMODE} -extldflags '${GO_EXTLDFLAGS}'"'
|
||||
GO_SHLIB_LDFLAGS ?= '-ldflags="--linkmode=external -extldflags '${GO_EXTLDFLAGS}'"'
|
||||
|
||||
do_configure() {
|
||||
:
|
||||
@@ -38,7 +36,7 @@ do_compile() {
|
||||
if [ -n "${GO_DYNLINK}" ]; then
|
||||
export GOTOOLDIR="${B}/pkg/tool/native_native"
|
||||
CC="$CC_FOR_${TARGET_GOOS}_${TARGET_GOARCH}" GOARCH="${TARGET_GOARCH}" GOOS="${TARGET_GOOS}" GOROOT=${B} \
|
||||
$GOTOOLDIR/go_bootstrap install -linkshared -buildmode=shared ${GO_LDFLAGS} std
|
||||
$GOTOOLDIR/go_bootstrap install -linkshared -buildmode=shared ${GO_SHLIB_LDFLAGS} std
|
||||
fi
|
||||
cd ${B}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user