This is for improving reproducibility to trim absolute paths as these recipes do not inherit go bbclass where it would be set automatically
Signed-off-by: Khem Raj <[email protected]> --- meta/recipes-devtools/go/go-target.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-devtools/go/go-target.inc b/meta/recipes-devtools/go/go-target.inc index d085643036a..aaaaa125f79 100644 --- a/meta/recipes-devtools/go/go-target.inc +++ b/meta/recipes-devtools/go/go-target.inc @@ -13,8 +13,8 @@ export CGO_CXXFLAGS = "${CXXFLAGS}" export CGO_LDFLAGS = "${@ ' '.join(filter(lambda f: not f.startswith('-fdebug-prefix-map'), d.getVar('LDFLAGS').split())) }" export GOCACHE = "${B}/.cache" -GO_LDFLAGS = "" -GO_LDFLAGS:class-nativesdk = "-linkmode external" +GO_LDFLAGS = "-trimpath" +GO_LDFLAGS:append:class-nativesdk = " -linkmode external" export GO_LDFLAGS CC:append:class-nativesdk = " ${SECURITY_NOPIE_CFLAGS}" -- 2.35.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#163720): https://lists.openembedded.org/g/openembedded-core/message/163720 Mute This Topic: https://lists.openembedded.org/mt/90091321/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
