aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhii (Sergey) Kozlov <skozlov@FreeBSD.org>2021-05-20 15:59:27 +0000
committerDmitri Goutnik <dmgk@FreeBSD.org>2021-05-20 16:00:52 +0000
commit475a23ad78aa18be05071e841fc82894711c085c (patch)
tree3df4dee168ced49a29646cb92282241d3412f992
parent35f693fce86e2954709167c1fbaf7aa7838dbb97 (diff)
downloadports-475a23ad78aa18be05071e841fc82894711c085c.tar.gz
ports-475a23ad78aa18be05071e841fc82894711c085c.zip
Mk/Uses/go.mk: Add -trimpath to GO_BUILDFLAGS
Differential Revision: https://reviews.freebsd.org/D30321
-rw-r--r--Mk/Uses/go.mk2
1 files changed, 1 insertions, 1 deletions
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