From 4f11ef0a33650070ac1e182c0c6450005bbf4872 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 4 Jan 2024 11:22:07 +0900 Subject: [PATCH] disable the default MCL_STATIC_CODE with ETH on mingw64 --- Makefile.onelib | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile.onelib b/Makefile.onelib index 8a5fd2a..74baec7 100644 --- a/Makefile.onelib +++ b/Makefile.onelib @@ -42,8 +42,15 @@ ifeq ($(CPU),x86-64) _ARCH=amd64 endif ifeq ($(CPU)$(ETH_CFLAGS),x86-64-DBLS_ETH) +ifeq ($(_OS),windows) + MCL_STATIC_CODE?=0 +else + MCL_STATIC_CODE?=1 +endif +endif + +ifeq ($(MCL_STATIC_CODE),1) MIN_CFLAGS+=-DMCL_STATIC_CODE -DMCL_DONT_USE_XBYAK - MCL_STATIC_CODE=1 OBJS+=$(MCL_DIR)/obj/static_code.o $(MCL_DIR)/obj/static_code.o: $(MAKE) -C $(MCL_DIR) obj/static_code.o