From: Ian Lance Taylor Date: Tue, 5 May 1998 22:03:12 +0000 (+0000) Subject: * configure.in: Add --with-newlib to CONFIG_ARGUMENTS if we are X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff2664fc491c169da16146ba88f7d8abcecf3159;p=binutils-gdb.git * configure.in: Add --with-newlib to CONFIG_ARGUMENTS if we are building with newlib. --- diff --git a/configure.in b/configure.in index 4bb99cfe8f3..8f2ebbe7d37 100644 --- a/configure.in +++ b/configure.in @@ -1124,6 +1124,12 @@ if [ x${enable_multilib} = x ]; then targargs="--enable-multilib ${targargs}" fi +# Pass --with-newlib if appropriate. Note that target_configdirs has +# changed from the earlier setting of with_newlib. +if [ x${with_newlib} != xno ] && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && [ -d ${srcdir}/newlib ] ; then + targargs="--with-newlib ${targargs}" +fi + targargs="--host=${target_alias} --build=${build_alias} ${targargs}" sed -e "s:^TARGET_CONFIGDIRS[ ]*=.*$:TARGET_CONFIGDIRS = ${target_configdirs}:" \ -e "s%^CONFIG_ARGUMENTS[ ]*=.*$%CONFIG_ARGUMENTS = ${targargs}%" \