Merge pull request #16 from bhundven/master

gmp: Disable --enable-mpbsd if version is >= 5.0.2
This commit is contained in:
Bryan Hundven 2015-01-01 15:41:57 -08:00
commit 11ae33951a
2 changed files with 15 additions and 2 deletions

View File

@ -9,18 +9,22 @@ choice
config GMP_V_6_0_0
bool
prompt "6.0.0a"
select GMP_5_0_2_or_later
config GMP_V_5_1_3
bool
prompt "5.1.3"
select GMP_5_0_2_or_later
config GMP_V_5_1_1
bool
prompt "5.1.1"
select GMP_5_0_2_or_later
config GMP_V_5_0_2
bool
prompt "5.0.2"
select GMP_5_0_2_or_later
config GMP_V_5_0_1
bool
@ -40,6 +44,10 @@ config GMP_V_4_3_0
endchoice
# To disable --enable-mpbsd
config GMP_5_0_2_or_later
bool
config GMP_VERSION
string
# Don't remove next line

View File

@ -76,6 +76,7 @@ do_gmp_backend() {
local cflags
local ldflags
local arg
local -a extra_config
for arg in "$@"; do
eval "${arg// /\\ }"
@ -83,6 +84,10 @@ do_gmp_backend() {
CT_DoLog EXTRA "Configuring GMP"
if [ ! "${CT_GMP_5_0_2_or_later}" = "y" ]; then
extra_config+=("--enable-mpbsd")
fi
CT_DoExecLog CFG \
CFLAGS="${cflags} -fexceptions" \
LDFLAGS="${ldflags}" \
@ -91,10 +96,10 @@ do_gmp_backend() {
--host=${host} \
--prefix="${prefix}" \
--enable-fft \
--enable-mpbsd \
--enable-cxx \
--disable-shared \
--enable-static
--enable-static \
"${extra_config}"
CT_DoLog EXTRA "Building GMP"
CT_DoExecLog ALL make ${JOBSFLAGS}