Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <416C0931.90006@gcc.gnu.org> Date: Tue, 12 Oct 2004 12:41:21 -0400 From: Kelley Cook User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) MIME-Version: 1.0 To: cygwin AT sources DOT redhat DOT com, gcc-patches AT gcc DOT gnu DOT org Subject: [toplevel, Cygwin] Don't warn if both newlib and winsup are missing Content-Type: multipart/mixed; boundary="------------090808040105040109030300" X-OriginalArrivalTime: 12 Oct 2004 16:41:23.0210 (UTC) FILETIME=[4F0F06A0:01C4B07A] X-MW-BTID: 093425000020042866008600000 X-MW-CTIME: 1097599285 X-MW-SENDING-MTA: 136.1.7.4 HOP-COUNT: 1 X-MAILWATCH-INSTANCEID: 0103000fdc18c90a-f077-4b1b-bd73-35db260e1882 --------------090808040105040109030300 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In July a patch was added to the Cygwin's toplevel that turns off newlib if winsup isn't also present. In the review, a suggestion was made to warn when this was not the case and this was added and eventually committed. The problem is when both cygwin and newlib are not present like when you build binutils or gcc under cygwin you now always get the warning. Though harmless, it annoys me. So this simple patch suppresses that warning if there was no attempt to build newlib. Tested in various combined trees using all four combinations with the following results: a) newlib=no, winsup=no: No warning, neither built b) newlib=yes, winsup=no: Warning, neither built c) newlib=no, winsup=yes: No warning, winsup built d) newlib=yes, winsup=yes: No warning, newlib and winsup built There is no change in behaviour besides supressing the warning for case a). OK to install? Kelley Cook (BTW no src cvswrite priv) --------------090808040105040109030300 Content-Type: text/plain; name="winsup_warning.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="winsup_warning.patch" 2004-10-12 Kelley Cook * configure.in (*-*-cygwin*): Supress warning when newlib not present. * configure: Regenerate. *** ../gcc-orig/configure.in Tue Oct 5 11:52:19 2004 --- configure.in Tue Oct 12 12:08:02 2004 *************** *** 590,599 **** target_configdirs="$target_configdirs target-libtermcap target-winsup" noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" # always build newlib if winsup directory is present. ! if test -d "$srcdir/winsup" ! then skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ! else echo "Warning: winsup is missing so newlib can't be built." fi --- 590,598 ---- target_configdirs="$target_configdirs target-libtermcap target-winsup" noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" # always build newlib if winsup directory is present. ! if test -d "$srcdir/winsup"; then skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ! elif test -d "$srcdir/newlib"; then echo "Warning: winsup is missing so newlib can't be built." fi --------------090808040105040109030300 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --------------090808040105040109030300--