From 50bbdfe5829d65490e088b4bc50fb05c57b8f650 Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 7 Apr 2015 15:20:24 +0200 Subject: [PATCH] Link GMP --- crypto/secp256k1/secp256.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto/secp256k1/secp256.go b/crypto/secp256k1/secp256.go index 1adcd33be0..9bdee75d87 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