Skip to content

Commit 001684f

Browse files
committed
Merge pull request #1958 from fjl/secp256k1-pkgsrc
crypto/secp256k1: add C compiler flags for pkgsrc
2 parents c841e39 + 16b0bc7 commit 001684f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crypto/secp256k1/secp256.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ package secp256k1
2020

2121
/*
2222
#cgo CFLAGS: -I./libsecp256k1
23-
#cgo darwin CFLAGS: -I/usr/local/include
23+
#cgo darwin CFLAGS: -I/usr/local/include -I/opt/pkg/include
2424
#cgo freebsd CFLAGS: -I/usr/local/include
2525
#cgo linux,arm CFLAGS: -I/usr/local/arm/include
2626
#cgo LDFLAGS: -lgmp
27-
#cgo darwin LDFLAGS: -L/usr/local/lib
27+
#cgo darwin LDFLAGS: -L/usr/local/lib -L/opt/pkg/lib
2828
#cgo freebsd LDFLAGS: -L/usr/local/lib
2929
#cgo linux,arm LDFLAGS: -L/usr/local/arm/lib
3030
#define USE_NUM_GMP

0 commit comments

Comments
 (0)