Revert "default build without GMP"

This reverts commit 8e986394ae.
update-fork
MITSUNARI Shigeo 4 years ago
parent 04a5034fa0
commit 9f97f25500
  1. 2
      common.mk
  2. 17
      readme.md

@ -110,7 +110,7 @@ ifeq ($(DEBUG),0)
CFLAGS+=$(CFLAGS_OPT_USER) CFLAGS+=$(CFLAGS_OPT_USER)
endif endif
CFLAGS+=$(CFLAGS_USER) CFLAGS+=$(CFLAGS_USER)
MCL_USE_GMP?=0 MCL_USE_GMP?=1
ifeq ($(OS),mac) ifeq ($(OS),mac)
ifeq ($(shell sw_vers -productVersion),10.15) ifeq ($(shell sw_vers -productVersion),10.15)
# workaround because of GMP does not run well on Catalina # workaround because of GMP does not run well on Catalina

@ -51,6 +51,14 @@ see [api.md](api.md)
# How to build on Linux and macOS # How to build on Linux and macOS
x86-64/ARM/ARM64 Linux, macOS and mingw64 are supported. 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 ## 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 make bin/bls12_test.exe && bin/bls12_test.exe
``` ```
## How to build with GMP ## How to build without GMP
Install [GMP](https://gmplib.org/).
```
apt install libgmp-dev # on Ubuntu
```
``` ```
make MCL_USE_GMP=1 make MCL_USE_GMP=0
``` ```
Define `MCL_USE_VINT` if using C++ header files. Define `MCL_USE_VINT` if using C++ header files.

Loading…
Cancel
Save