git: 475a23ad78aa - main - Mk/Uses/go.mk: Add -trimpath to GO_BUILDFLAGS
Dmitri Goutnik
dmgk at FreeBSD.org
Thu May 20 16:01:51 UTC 2021
The branch main has been updated by dmgk:
URL: https://cgit.FreeBSD.org/ports/commit/?id=475a23ad78aa18be05071e841fc82894711c085c
commit 475a23ad78aa18be05071e841fc82894711c085c
Author: Serhii (Sergey) Kozlov <skozlov at FreeBSD.org>
AuthorDate: 2021-05-20 15:59:27 +0000
Commit: Dmitri Goutnik <dmgk at FreeBSD.org>
CommitDate: 2021-05-20 16:00:52 +0000
Mk/Uses/go.mk: Add -trimpath to GO_BUILDFLAGS
Differential Revision: https://reviews.freebsd.org/D30321
---
Mk/Uses/go.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Mk/Uses/go.mk b/Mk/Uses/go.mk
index 9b1e5454bbf5..60d1c6f15b5d 100644
--- a/Mk/Uses/go.mk
+++ b/Mk/Uses/go.mk
@@ -82,7 +82,7 @@ GO_PKGNAME= ${PORTNAME}
GO_TARGET?= ${GO_PKGNAME}
GO_TESTTARGET?= ./...
-GO_BUILDFLAGS+= -v -buildmode=exe
+GO_BUILDFLAGS+= -v -buildmode=exe -trimpath
.if !defined(WITH_DEBUG) && empty(GO_BUILDFLAGS:M-ldflags*)
GO_BUILDFLAGS+= -ldflags=-s
.endif
More information about the dev-commits-ports-all
mailing list