scripts/build/companion_libs/130-cloog.sh
changeset 3159 fb71cad4b085
parent 3115 1c68438f44f7
child 3218 3709e61ad85b
     1.1 --- a/scripts/build/companion_libs/130-cloog.sh	Fri Nov 16 14:59:27 2012 +0100
     1.2 +++ b/scripts/build/companion_libs/130-cloog.sh	Thu Jan 10 00:27:13 2013 +0100
     1.3 @@ -53,6 +53,8 @@
     1.4  
     1.5      cloog_opts+=( "host=${CT_BUILD}" )
     1.6      cloog_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" )
     1.7 +    cloog_opts+=( "cflags=${CT_CFLAGS_FOR_BUILD}" )
     1.8 +    cloog_opts+=( "ldflags=${CT_LDFLAGS_FOR_BUILD}" )
     1.9      do_cloog_backend "${cloog_opts[@]}"
    1.10  
    1.11      CT_Popd
    1.12 @@ -69,6 +71,7 @@
    1.13      cloog_opts+=( "host=${CT_HOST}" )
    1.14      cloog_opts+=( "prefix=${CT_HOST_COMPLIBS_DIR}" )
    1.15      cloog_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
    1.16 +    cloog_opts+=( "ldflags=${CT_LDFLAGS_FOR_HOST}" )
    1.17      do_cloog_backend "${cloog_opts[@]}"
    1.18  
    1.19      CT_Popd
    1.20 @@ -79,11 +82,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_cloog_backend() {
    1.28      local host
    1.29      local prefix
    1.30      local cflags
    1.31 +    local ldflags
    1.32      local cloog_src_dir="${CT_SRC_DIR}/cloog-ppl-${CT_CLOOG_VERSION}"
    1.33      local arg
    1.34  
    1.35 @@ -95,6 +100,7 @@
    1.36  
    1.37      CT_DoExecLog CFG                            \
    1.38      CFLAGS="${cflags}"                          \
    1.39 +    LDFLAGS="${ldflags}"                        \
    1.40      LIBS="-lm"                                  \
    1.41      "${cloog_src_dir}/configure"                \
    1.42          --build=${CT_BUILD}                     \