Mail Archives: cygwin/2004/10/12/12:42:49
--------------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 <kcook AT gcc DOT gnu DOT org>
* 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--
- Raw text -