aboutsummaryrefslogtreecommitdiffstats
path: root/go/bls
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-05-30 20:25:58 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-05-30 20:25:58 +0800
commitfba0d40500aed7a700efac8e311b84a75031a408 (patch)
tree913011215a496182137b82dc86527a6189cb3c6c /go/bls
parent6d7c5863b165b3a5e6bc415d533b5a5f4d674b0c (diff)
downloaddexon-bls-fba0d40500aed7a700efac8e311b84a75031a408.tar
dexon-bls-fba0d40500aed7a700efac8e311b84a75031a408.tar.gz
dexon-bls-fba0d40500aed7a700efac8e311b84a75031a408.tar.bz2
dexon-bls-fba0d40500aed7a700efac8e311b84a75031a408.tar.lz
dexon-bls-fba0d40500aed7a700efac8e311b84a75031a408.tar.xz
dexon-bls-fba0d40500aed7a700efac8e311b84a75031a408.tar.zst
dexon-bls-fba0d40500aed7a700efac8e311b84a75031a408.zip
use pkg-config
Diffstat (limited to 'go/bls')
-rw-r--r--go/bls/bls.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/go/bls/bls.go b/go/bls/bls.go
index adcacff..91d5a24 100644
--- a/go/bls/bls.go
+++ b/go/bls/bls.go
@@ -1,11 +1,10 @@
package bls
/*
-#cgo CFLAGS:-I../../include -DBLS_MAX_OP_UNIT_SIZE=6
+#cgo pkg-config: bls
#cgo bn256 CFLAGS:-UBLS_MAX_OP_UNIT_SIZE -DBLS_MAX_OP_UNIT_SIZE=4
#cgo bn384 CFLAGS:-UBLS_MAX_OP_UNIT_SIZE -DBLS_MAX_OP_UNIT_SIZE=6
-#cgo LDFLAGS:-lbls -lbls_if -lmcl -lgmp -lgmpxx -L../lib -L../../lib -L../../../mcl/lib -L../../mcl/lib -lstdc++ -lcrypto
-#include "bls/bls_if.h"
+#include <bls/bls_if.h>
*/
import "C"
import "fmt"