aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-07 21:20:24 +0800
committerobscuren <geffobscura@gmail.com>2015-04-07 21:20:24 +0800
commit50bbdfe5829d65490e088b4bc50fb05c57b8f650 (patch)
tree2ed0e88de17abaefdd438ec7997d7ab5b72aaba8 /crypto
parentce9a28d7bb0904269b2e773285a4a6f4ac894df9 (diff)
downloaddexon-50bbdfe5829d65490e088b4bc50fb05c57b8f650.tar
dexon-50bbdfe5829d65490e088b4bc50fb05c57b8f650.tar.gz
dexon-50bbdfe5829d65490e088b4bc50fb05c57b8f650.tar.bz2
dexon-50bbdfe5829d65490e088b4bc50fb05c57b8f650.tar.lz
dexon-50bbdfe5829d65490e088b4bc50fb05c57b8f650.tar.xz
dexon-50bbdfe5829d65490e088b4bc50fb05c57b8f650.tar.zst
dexon-50bbdfe5829d65490e088b4bc50fb05c57b8f650.zip
Link GMP
Diffstat (limited to 'crypto')
-rw-r--r--crypto/secp256k1/secp256.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/secp256k1/secp256.go b/crypto/secp256k1/secp256.go
index 1adcd33be..9bdee75d8 100644
--- a/crypto/secp256k1/secp256.go
+++ b/crypto/secp256k1/secp256.go
@@ -4,6 +4,9 @@ package secp256k1
/*
#cgo CFLAGS: -I./secp256k1
+#cgo darwin CFLAGS: -I/usr/local/include
+#cgo LDFLAGS: -lgmp
+#cgo darwin LDFLAGS: -L/usr/local/lib
#define USE_NUM_GMP
#define USE_FIELD_10X26
#define USE_FIELD_INV_BUILTIN