aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-11-29 10:21:45 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-11-29 10:21:45 +0800
commit75cc396b57a31336f44f104116456b7450a5b0b9 (patch)
tree255410f09f0386b13083d6f90ea37172cdb6f6c5
parente9d5952ea046f29896329068e16f9526eddef04c (diff)
downloaddexon-bls-75cc396b57a31336f44f104116456b7450a5b0b9.tar
dexon-bls-75cc396b57a31336f44f104116456b7450a5b0b9.tar.gz
dexon-bls-75cc396b57a31336f44f104116456b7450a5b0b9.tar.bz2
dexon-bls-75cc396b57a31336f44f104116456b7450a5b0b9.tar.lz
dexon-bls-75cc396b57a31336f44f104116456b7450a5b0b9.tar.xz
dexon-bls-75cc396b57a31336f44f104116456b7450a5b0b9.tar.zst
dexon-bls-75cc396b57a31336f44f104116456b7450a5b0b9.zip
support MCL_USE_GMP=0
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4bad7f6..22eaf6d 100644
--- a/Makefile
+++ b/Makefile
@@ -44,9 +44,10 @@ $(BLS384_256_LIB): $(OBJ_DIR)/bls_c384_256.o
$(AR) $@ $<
ifneq ($(findstring $(OS),mac/mingw64),)
- BLS256_SLIB_LDFLAGS+=-lgmpxx -lgmp -lcrypto -lstdc++
- BLS384_SLIB_LDFLAGS+=-lgmpxx -lgmp -lcrypto -lstdc++
- BLS384_256_SLIB_LDFLAGS+=-lgmpxx -lgmp -lcrypto -lstdc++
+ COMMON_LIB=$(GMP_LIB) $(OPENSSL_LIB) -lstdc++
+ BLS256_SLIB_LDFLAGS+=$(COMMON_LIB)
+ BLS384_SLIB_LDFLAGS+=$(COMMON_LIB)
+ BLS384_256_SLIB_LDFLAGS+=$(COMMON_LIB)
endif
ifeq ($(OS),mingw64)
CFLAGS+=-I$(MCL_DIR)