From patchwork Tue Oct 4 23:27:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Patch: [PR 50562]: configure: add target-libgloss to skipdirs when using --without-newlib From: "Jeremy Stenglein \(jstengle\)" X-Patchwork-Id: 117713 Message-Id: <13EBEADFAA5B5041B7FC8A3311E7DD1C0571D3C5@XMB-RCD-104.cisco.com> To: Date: Tue, 4 Oct 2011 18:27:24 -0500 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 * configure.ac: --without-newlib should add libgloss to skipdirs * configure: Regenerate. Ok for trunk? Thanks, Jeremy 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