From 9f97f255006ceb5185ed63ea868602eae9950631 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 27 Oct 2020 23:47:26 +0900 Subject: [PATCH] Revert "default build without GMP" This reverts commit 8e986394ae9b242072f2107818c35e9239b3de26. --- common.mk | 2 +- readme.md | 17 ++++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/common.mk b/common.mk index 5aca290..29cd650 100644 --- a/common.mk +++ b/common.mk @@ -110,7 +110,7 @@ ifeq ($(DEBUG),0) CFLAGS+=$(CFLAGS_OPT_USER) endif CFLAGS+=$(CFLAGS_USER) -MCL_USE_GMP?=0 +MCL_USE_GMP?=1 ifeq ($(OS),mac) ifeq ($(shell sw_vers -productVersion),10.15) # workaround because of GMP does not run well on Catalina diff --git a/readme.md b/readme.md index d1c5619..c3f175d 100644 --- a/readme.md +++ b/readme.md @@ -51,6 +51,14 @@ see [api.md](api.md) # How to build on Linux and macOS x86-64/ARM/ARM64 Linux, macOS and mingw64 are supported. +## Installation Requirements + +[GMP](https://gmplib.org/) is necessary (default setting). + +``` +apt install libgmp-dev # on Ubuntu +``` + ## How to build with Makefile ``` @@ -72,15 +80,10 @@ make bin/bn_c384_256_test.exe && bin/bn_c384_256_test.exe make bin/bls12_test.exe && bin/bls12_test.exe ``` -## How to build with GMP -Install [GMP](https://gmplib.org/). - -``` -apt install libgmp-dev # on Ubuntu -``` +## How to build without GMP ``` -make MCL_USE_GMP=1 +make MCL_USE_GMP=0 ``` Define `MCL_USE_VINT` if using C++ header files.