scripts/build/companion_libs/120-ppl.sh
changeset 3119 1c56c03b7ed5
parent 3115 1c68438f44f7
child 3135 3829050af02a
     1.1 --- a/scripts/build/companion_libs/120-ppl.sh	Fri Nov 16 14:59:27 2012 +0100
     1.2 +++ b/scripts/build/companion_libs/120-ppl.sh	Fri Nov 16 15:25:57 2012 +0100
     1.3 @@ -40,6 +40,8 @@
     1.4  
     1.5      ppl_opts+=( "host=${CT_BUILD}" )
     1.6      ppl_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" )
     1.7 +    ppl_opts+=( "cflags=${CT_CFLAGS_FOR_BUILD}" )
     1.8 +    ppl_opts+=( "ldflags=${CT_LDFLAGS_FOR_BUILD}" )
     1.9      do_ppl_backend "${ppl_opts[@]}"
    1.10  
    1.11      CT_Popd
    1.12 @@ -56,6 +58,7 @@
    1.13      ppl_opts+=( "host=${CT_HOST}" )
    1.14      ppl_opts+=( "prefix=${CT_HOST_COMPLIBS_DIR}" )
    1.15      ppl_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
    1.16 +    ppl_opts+=( "ldflags=${CT_LDFLAGS_FOR_HOST}" )
    1.17      do_ppl_backend "${ppl_opts[@]}"
    1.18  
    1.19      CT_Popd
    1.20 @@ -66,11 +69,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_ppl_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 @@ -82,6 +87,7 @@
    1.36      CT_DoExecLog CFG                                \
    1.37      CFLAGS="${cflags}"                              \
    1.38      CXXFLAGS="${cflags}"                            \
    1.39 +    LDFLAGS="${ldflags}"                            \
    1.40      "${CT_SRC_DIR}/ppl-${CT_PPL_VERSION}/configure" \
    1.41          --build=${CT_BUILD}                         \
    1.42          --host=${host}                              \