mirror of
https://git.yoctoproject.org/poky
synced 2026-04-10 23:02:25 +02:00
goarch.bbclass: identify archs with Go dynamic linking support
Go only supports shared libraries for some architectures, so add a variable for use elsewhere that gets a non-null value only for those architectures. (From OE-Core rev: 2275712df152b73ce49b36bdf9f8d744c68c9c50) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b75fef21d1
commit
e3c693eaea
@@ -11,6 +11,16 @@ TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES')
|
||||
TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}"
|
||||
GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}"
|
||||
|
||||
# Go supports dynamic linking on a limited set of architectures.
|
||||
# See the supportsDynlink function in go/src/cmd/compile/internal/gc/main.go
|
||||
GO_DYNLINK = ""
|
||||
GO_DYNLINK_arm = "1"
|
||||
GO_DYNLINK_aarch64 = "1"
|
||||
GO_DYNLINK_x86 = "1"
|
||||
GO_DYNLINK_x86-64 = "1"
|
||||
GO_DYNLINK_powerpc64 = "1"
|
||||
GO_DYNLINK_class-native = ""
|
||||
|
||||
# define here because everybody inherits this class
|
||||
#
|
||||
COMPATIBLE_HOST_linux-gnux32 = "null"
|
||||
|
||||
Reference in New Issue
Block a user