aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-04-23 17:22:39 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-04-23 17:22:39 +0800
commit0071fbed8c1525bedf43e3bbd444b11e64b87f27 (patch)
tree45620d6c2a1892f6420c1d4f400917776700a115
parent67cc80ba6647f9e316b43d869a05856435f7b444 (diff)
parent04e216319e33b5f3b97abd3c8ede314e048fcea9 (diff)
downloaddexon-0071fbed8c1525bedf43e3bbd444b11e64b87f27.tar
dexon-0071fbed8c1525bedf43e3bbd444b11e64b87f27.tar.gz
dexon-0071fbed8c1525bedf43e3bbd444b11e64b87f27.tar.bz2
dexon-0071fbed8c1525bedf43e3bbd444b11e64b87f27.tar.lz
dexon-0071fbed8c1525bedf43e3bbd444b11e64b87f27.tar.xz
dexon-0071fbed8c1525bedf43e3bbd444b11e64b87f27.tar.zst
dexon-0071fbed8c1525bedf43e3bbd444b11e64b87f27.zip
Merge pull request #780 from maran/arm_build
Adding flags to facilitate cross compiling to ARM
-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