[libiconv PATCH 2 of 3] cc/gcc: handle --with-libiconv-prefix

Zhenqiang Chen zhenqiang.chen@linaro.org
Wed Nov 23 12:11:00 GMT 2011


# HG changeset patch
# User Zhenqiang Chen <zhenqiang.chen@linaro.org>
# Date 1322038651 -28800
# Node ID 2a521a33e9775dacc797f5dac47f515bdf628d92
# Parent  cae5f04044f4b6a2caa14da4568c80af4d257580
cc/gcc: handle --with-libiconv-prefix.

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -293,6 +293,8 @@

      [ "${CT_CC_GCC_DISABLE_PCH}" = "y" ] && extra_config+=("--disable-libstdcxx-pch")

+    [ "${CT_LIBICONV_NEEDED}" = "y" ] && extra_config+=("--with-libiconv-prefix=${CT_COMPLIBS_DIR}")
+
      CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"

      # Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532)

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list