Patch: [PR 50562]: configure: add target-libgloss to skipdirs when using --without-newlib

Jeremy Stenglein (jstengle)
Tue Oct 4 23:44:00 GMT 2011

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
# depends upon some newlib header files.
case "${noconfigdirs}" in
  *target-libgloss*) ;;
  *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;

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  <>

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

---        (revision 179505)
+++        (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 / /'`

Ok for trunk?


More information about the Gcc-patches mailing list