diff -r 1c68438f44f7 -r 1c56c03b7ed5 scripts/build/companion_libs/140-mpc.sh --- a/scripts/build/companion_libs/140-mpc.sh Fri Nov 16 14:59:27 2012 +0100 +++ b/scripts/build/companion_libs/140-mpc.sh Fri Nov 16 15:25:57 2012 +0100 @@ -38,6 +38,8 @@ mpc_opts+=( "host=${CT_BUILD}" ) mpc_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" ) + mpc_opts+=( "cflags=${CT_CFLAGS_FOR_BUILD}" ) + mpc_opts+=( "ldflags=${CT_LDFLAGS_FOR_BUILD}" ) do_mpc_backend "${mpc_opts[@]}" CT_Popd @@ -54,6 +56,7 @@ mpc_opts+=( "host=${CT_HOST}" ) mpc_opts+=( "prefix=${CT_HOST_COMPLIBS_DIR}" ) mpc_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" ) + mpc_opts+=( "ldflags=${CT_LDFLAGS_FOR_HOST}" ) do_mpc_backend "${mpc_opts[@]}" CT_Popd @@ -64,11 +67,13 @@ # Parameter : description : type : default # host : machine to run on : tuple : (none) # prefix : prefix to install into : dir : (none) -# cflags : host cflags to use : string : (empty) +# cflags : cflags to use : string : (empty) +# ldflags : ldflags to use : string : (empty) do_mpc_backend() { local host local prefix local cflags + local ldflags local arg for arg in "$@"; do @@ -79,6 +84,7 @@ CT_DoExecLog CFG \ CFLAGS="${cflags}" \ + LDFLAGS="${ldflags}" \ "${CT_SRC_DIR}/mpc-${CT_MPC_VERSION}/configure" \ --build=${CT_BUILD} \ --host=${host} \