gmp: Disable --enable-mpbsd if version is >= 5.0.2

closes #12

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
This commit is contained in:
Bryan Hundven 2014-12-23 13:28:26 -08:00
parent 767aa9befc
commit 4b84be34c5
2 changed files with 15 additions and 2 deletions

View File

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

View File

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