Page MenuHomeFreeBSD

D21730.id62349.diff
No OneTemporary

D21730.id62349.diff

Index: Mk/Uses/go.mk
===================================================================
--- Mk/Uses/go.mk
+++ Mk/Uses/go.mk
@@ -62,6 +62,7 @@
.endif
# Settable variables
+
.if empty(GO_PKGNAME)
. if !empty(GH_SUBDIR)
GO_PKGNAME= ${GH_SUBDIR:S|^src/||}
@@ -72,18 +73,24 @@
. endif
.endif
GO_TARGET?= ${GO_PKGNAME}
+
GO_BUILDFLAGS+= -v -buildmode=exe
+.if !defined(WITH_DEBUG) && empty(GO_BUILDFLAGS:M-ldflags*)
+GO_BUILDFLAGS+= -ldflags="-s -w"
+.endif
+
CGO_ENABLED?= 1
CGO_CFLAGS+= -I${LOCALBASE}/include
CGO_LDFLAGS+= -L${LOCALBASE}/lib
+
.if ${ARCH} == armv6 || ${ARCH} == armv7
GOARM?= ${ARCH:C/armv//}
.endif
# Read-only variables
+
GO_CMD= ${LOCALBASE}/bin/go
GO_WRKDIR_BIN= ${WRKDIR}/bin
-
GO_ENV+= CGO_ENABLED=${CGO_ENABLED} \
CGO_CFLAGS="${CGO_CFLAGS}" \
CGO_LDFLAGS="${CGO_LDFLAGS}" \

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 5, 1:56 AM (9 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35980135
Default Alt Text
D21730.id62349.diff (829 B)

Event Timeline