From 0e64636878ea411c7fa0bd750a3b03866cd92c21 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 1 Oct 2020 12:24:52 +0900 Subject: [PATCH] move MCL_STATIC_CODE flag to common.mk --- Makefile | 3 --- common.mk | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 92377db..2edb3b4 100644 --- a/Makefile +++ b/Makefile @@ -13,9 +13,6 @@ TEST_SRC+=ecdsa_c_test.cpp TEST_SRC+=modp_test.cpp LIB_OBJ=$(OBJ_DIR)/fp.o ifeq ($(MCL_STATIC_CODE),1) - MCL_USE_XBYAK=0 - MCL_MAX_BIT_SIZE=384 - CFLAGS+=-DMCL_STATIC_CODE LIB_OBJ+=obj/static_code.o TEST_SRC=bls12_test.cpp endif diff --git a/common.mk b/common.mk index 2870ac9..ec7d0e6 100644 --- a/common.mk +++ b/common.mk @@ -127,6 +127,11 @@ endif ifeq ($(MCL_USE_OPENSSL),1) OPENSSL_LIB=-lcrypto endif +ifeq ($(MCL_STATIC_CODE),1) + MCL_USE_XBYAK=0 + MCL_MAX_BIT_SIZE=384 + CFLAGS+=-DMCL_STATIC_CODE +endif LDFLAGS+=$(GMP_LIB) $(OPENSSL_LIB) $(BIT_OPT) $(LDFLAGS_USER) CFLAGS+=-fPIC