pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

go-gopacket: Set LDFLAGS so that cgo can find libpcap



Module Name:	pkgsrc-wip
Committed By:	Min Sik Kim <minskim%NetBSD.org@localhost>
Pushed By:	minskim
Date:		Sat Sep 1 06:26:39 2018 -0700
Changeset:	4cc88371a32ad04a44c39af95a7c11fb224f02e2

Modified Files:
	go-gopacket/Makefile

Log Message:
go-gopacket: Set LDFLAGS so that cgo can find libpcap

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4cc88371a32ad04a44c39af95a7c11fb224f02e2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 go-gopacket/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diffs:
diff --git a/go-gopacket/Makefile b/go-gopacket/Makefile
index b5e5d215a5..75c36006b0 100644
--- a/go-gopacket/Makefile
+++ b/go-gopacket/Makefile
@@ -15,6 +15,12 @@ LICENSE=	modified-bsd
 GO_DIST_BASE=	${DISTNAME}
 GO_SRCPATH=	${HOMEPAGE:S,https://,,}
 
+SUBST_CLASSES+=		ldflags
+SUBST_STAGE.ldflags=	pre-configure
+SUBST_MESSAGE.ldflags=	Set LDFLAGS for cgo.
+SUBST_FILES.ldflags=	pcap/pcap.go
+SUBST_SED.ldflags=	-e 's, LDFLAGS:, LDFLAGS: -L${BUILDLINK_PREFIX.libpcap}/lib,g'
+
 .include "../../devel/go-sys/buildlink3.mk"
 .include "../../net/go-net/buildlink3.mk"
 .include "../../net/libpcap/buildlink3.mk"


Home | Main Index | Thread Index | Old Index