Skip to content

Commit

Permalink
disable the default MCL_STATIC_CODE with ETH on mingw64
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Jan 4, 2024
1 parent eb3c7e5 commit 4f11ef0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile.onelib
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f11ef0

Please sign in to comment.