Browse Source

pcap static lib

Tobias von Dewitz 2 years ago
parent
commit
32ef3935a5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      vendor/github.com/google/gopacket/pcap/pcap_unix.go

+ 2 - 1
vendor/github.com/google/gopacket/pcap/pcap_unix.go

@@ -5,6 +5,7 @@
 // that can be found in the LICENSE file in the root of the source
 // tree.
 //
+//go:build !windows
 // +build !windows
 
 package pcap
@@ -24,7 +25,7 @@ import (
 
 /*
 #cgo solaris LDFLAGS: -L /opt/local/lib -lpcap
-#cgo linux LDFLAGS: -lpcap
+#cgo linux LDFLAGS: /usr/local/lib/libpcap.a
 #cgo dragonfly LDFLAGS: -lpcap
 #cgo freebsd LDFLAGS: -lpcap
 #cgo openbsd LDFLAGS: -lpcap