As per PR 50562, when --without-newlib is passed to configure,
target-newlib is added to skipdirs.  
But target-newlib is not added to noconfigdirs, so this check:
 
# If we aren't building newlib, then don't build libgloss, since
libgloss
# depends upon some newlib header files.
case "${noconfigdirs}" in
  *target-libgloss*) ;;
  *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
 esac

Does not disable libgloss like it should when 
--without-newlib is passed.  So the following 
patch adds target-libgloss to skipdirs when --without-newlib
is passed.

Testing: Bootstrapped/tested on x86_64-linux and sparc-sun-solaris2.10 
with a gcc+newlib+libgloss combined tree.

2011-10-4  Jeremy Stenglein  <jsten...@cisco.com>

       * configure.ac: --without-newlib should add libgloss to skipdirs
       * configure: Regenerate.

Index: configure.ac
===================================================================
--- configure.ac        (revision 179505)
+++ configure.ac        (working copy)
@@ -276,7 +276,7 @@ fi

 # Recognize --with-newlib/--without-newlib.
 case ${with_newlib} in
-  no) skipdirs="${skipdirs} target-newlib" ;;
+  no) skipdirs="${skipdirs} target-newlib target-libgloss" ;;
   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
;;
 esac

Ok for trunk?

Thanks,
Jeremy 

Reply via email to