1.1 --- a/scripts/build/companion_libs/140-mpc.sh Fri Nov 16 14:59:27 2012 +0100
1.2 +++ b/scripts/build/companion_libs/140-mpc.sh Sat May 04 00:08:34 2013 +0200
1.3 @@ -38,6 +38,8 @@
1.4
1.5 mpc_opts+=( "host=${CT_BUILD}" )
1.6 mpc_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" )
1.7 + mpc_opts+=( "cflags=${CT_CFLAGS_FOR_BUILD}" )
1.8 + mpc_opts+=( "ldflags=${CT_LDFLAGS_FOR_BUILD}" )
1.9 do_mpc_backend "${mpc_opts[@]}"
1.10
1.11 CT_Popd
1.12 @@ -54,6 +56,7 @@
1.13 mpc_opts+=( "host=${CT_HOST}" )
1.14 mpc_opts+=( "prefix=${CT_HOST_COMPLIBS_DIR}" )
1.15 mpc_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
1.16 + mpc_opts+=( "ldflags=${CT_LDFLAGS_FOR_HOST}" )
1.17 do_mpc_backend "${mpc_opts[@]}"
1.18
1.19 CT_Popd
1.20 @@ -64,11 +67,13 @@
1.21 # Parameter : description : type : default
1.22 # host : machine to run on : tuple : (none)
1.23 # prefix : prefix to install into : dir : (none)
1.24 -# cflags : host cflags to use : string : (empty)
1.25 +# cflags : cflags to use : string : (empty)
1.26 +# ldflags : ldflags to use : string : (empty)
1.27 do_mpc_backend() {
1.28 local host
1.29 local prefix
1.30 local cflags
1.31 + local ldflags
1.32 local arg
1.33
1.34 for arg in "$@"; do
1.35 @@ -79,6 +84,7 @@
1.36
1.37 CT_DoExecLog CFG \
1.38 CFLAGS="${cflags}" \
1.39 + LDFLAGS="${ldflags}" \
1.40 "${CT_SRC_DIR}/mpc-${CT_MPC_VERSION}/configure" \
1.41 --build=${CT_BUILD} \
1.42 --host=${host} \