aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2015-04-22 23:04:46 +0800
committerMaran <maran.hidskes@gmail.com>2015-04-22 23:04:46 +0800
commit04e216319e33b5f3b97abd3c8ede314e048fcea9 (patch)
tree030219b36d0e70191bcf67ebd814cb77fa84c76f /crypto
parent35595560f0111ab09427481144f654ab579f5e5a (diff)
downloadgo-tangerine-04e216319e33b5f3b97abd3c8ede314e048fcea9.tar
go-tangerine-04e216319e33b5f3b97abd3c8ede314e048fcea9.tar.gz
go-tangerine-04e216319e33b5f3b97abd3c8ede314e048fcea9.tar.bz2
go-tangerine-04e216319e33b5f3b97abd3c8ede314e048fcea9.tar.lz
go-tangerine-04e216319e33b5f3b97abd3c8ede314e048fcea9.tar.xz
go-tangerine-04e216319e33b5f3b97abd3c8ede314e048fcea9.tar.zst
go-tangerine-04e216319e33b5f3b97abd3c8ede314e048fcea9.zip
Adding flags to facilitate cross compiling to ARM
Diffstat (limited to 'crypto')
-rw-r--r--crypto/secp256k1/secp256.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/secp256k1/secp256.go b/crypto/secp256k1/secp256.go
index 6eafea2fa..f8cc60e82 100644
--- a/crypto/secp256k1/secp256.go
+++ b/crypto/secp256k1/secp256.go
@@ -5,8 +5,10 @@ package secp256k1
/*
#cgo CFLAGS: -I./secp256k1
#cgo darwin CFLAGS: -I/usr/local/include
+#cgo linux,arm CFLAGS: -I/usr/local/arm/include
#cgo LDFLAGS: -lgmp
#cgo darwin LDFLAGS: -L/usr/local/lib
+#cgo linux,arm LDFLAGS: -L/usr/local/arm/lib
#define USE_NUM_GMP
#define USE_FIELD_10X26
#define USE_FIELD_INV_BUILTIN