pull/5/head
JamesRowe 3 years ago
parent 270f9995b7
commit 149f3e577b
  1. 8
      common.mk

@ -21,7 +21,7 @@ ifeq ($(UNAME_S),Darwin)
OPENSSL_DIR?=/opt/homebrew/opt/openssl@1.1 OPENSSL_DIR?=/opt/homebrew/opt/openssl@1.1
CFLAGS+=-I$(OPENSSL_DIR)/include CFLAGS+=-I$(OPENSSL_DIR)/include
LDFLAGS+=-L$(OPENSSL_DIR)/lib LDFLAGS+=-L$(OPENSSL_DIR)/lib
GMP_DIR?=/usr/local/opt/gmp GMP_DIR?=/opt/homebrew/opt/gmp
CFLAGS+=-I$(GMP_DIR)/include CFLAGS+=-I$(GMP_DIR)/include
LDFLAGS+=-L$(GMP_DIR)/lib LDFLAGS+=-L$(GMP_DIR)/lib
else else
@ -98,9 +98,9 @@ CFLAGS+=$(CFLAGS_OPT_USER)
endif endif
CFLAGS+=$(CFLAGS_USER) CFLAGS+=$(CFLAGS_USER)
MCL_USE_GMP?=1 MCL_USE_GMP?=1
ifneq ($(OS),mac/mac-m1,) # ifneq ($(OS),mac/mac-m1,)
MCL_USE_GMP=0 # MCL_USE_GMP=0
endif # endif
MCL_USE_OPENSSL?=1 MCL_USE_OPENSSL?=1
ifeq ($(MCL_USE_GMP),0) ifeq ($(MCL_USE_GMP),0)
CFLAGS+=-DMCL_USE_VINT CFLAGS+=-DMCL_USE_VINT

Loading…
Cancel
Save