1.1 --- a/scripts/build/companion_libs/mpc.sh Sat Apr 10 23:43:08 2010 +0200
1.2 +++ b/scripts/build/companion_libs/mpc.sh Sun Apr 11 00:47:23 2010 +0200
1.3 @@ -23,12 +23,21 @@
1.4 }
1.5
1.6 do_mpc() {
1.7 + local -a mpc_opts
1.8 +
1.9 mkdir -p "${CT_BUILD_DIR}/build-mpc"
1.10 cd "${CT_BUILD_DIR}/build-mpc"
1.11
1.12 CT_DoStep INFO "Installing MPC"
1.13
1.14 CT_DoLog EXTRA "Configuring MPC"
1.15 +
1.16 + if [ "${CT_COMPLIBS_SHARED}" = "y" ]; then
1.17 + mpc_opts+=( --enable-shared --disable-static )
1.18 + else
1.19 + mpc_opts+=( --disable-shared --enable-static )
1.20 + fi
1.21 +
1.22 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
1.23 CT_DoExecLog ALL \
1.24 "${CT_SRC_DIR}/mpc-${CT_MPC_VERSION}/configure" \
1.25 @@ -37,8 +46,7 @@
1.26 --prefix="${CT_PREFIX_DIR}" \
1.27 --with-gmp="${CT_PREFIX_DIR}" \
1.28 --with-mpfr="${CT_PREFIX_DIR}" \
1.29 - --disable-shared \
1.30 - --enable-static
1.31 + "${mpc_opts[@]}"
1.32
1.33 CT_DoLog EXTRA "Building MPC"
1.34 CT_DoExecLog ALL make ${PARALLELMFLAGS}