diff --git a/meta-oniro-core/recipes-core/sysota/sysota_git.bb b/meta-oniro-core/recipes-core/sysota/sysota_git.bb index 9930739184e6e5c34f4fca3abf6f5d4f04ce4c17..5c1afe84aeae476ea5e94ead12f949871cac3ea8 100644 --- a/meta-oniro-core/recipes-core/sysota/sysota_git.bb +++ b/meta-oniro-core/recipes-core/sysota/sysota_git.bb @@ -19,6 +19,8 @@ GO_DYNLINK:x86 = "" GO_DYNLINK:x86-64 = "" GO_DYNLINK:arm = "" GO_DYNLINK:aarch64 = "" +GO_LINKMODE:toolchain-clang ?= "-linkmode external" +GO_EXTLDFLAGS:toolchain-clang:append = " -static " # This package is built with go-mod as well as with make. #