Skip to content

Commit e344e1d

Browse files
committed
crypto/secp256k1: drop pkgsrc paths from CFLAGS
They cause compiler warnings for people who don't have these directories. People with pkgsrc can add the directory through CGO_CFLAGS instead.
1 parent 5159f8f commit e344e1d

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 -I/opt/pkg/include
23+
#cgo darwin CFLAGS: -I/usr/local/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 -L/opt/pkg/lib
27+
#cgo darwin LDFLAGS: -L/usr/local/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)