[patch] Update build flags for new compiler feature

Corinna Vinschen corinna-cygwin@cygwin.com
Sat Oct 3 12:09:00 GMT 2009

On Oct  2 18:19, Christopher Faylor wrote:
> On Fri, Oct 02, 2009 at 10:11:14PM +0100, Dave Korn wrote:
> >
> >  So, nobody did ask for a compiler version check(*), so here's the patch plus
> >changelog, and I'd like to get separate OKs from both cgf and cv to say that
> >you've each either updated your cross-build environments or don't mind
> >patching the flag back out locally until you can.
> >
> >winsup/cygwin/ChangeLog:
> >
> >	* Makefile.in (CFLAGS): Add -mno-use-libstdc-wrappers
> >
> >  (In case anyone was wondering, I think CFLAGS, rather than CXXFLAGS, is the
> >right place to add it; it applies to cross-language mixed linking situations
> >as much as it does to C++ alone).
> I think we've confirmed that this is a good fix.  Please check it in.

I just built a gcc 4.3.4 Linux->Cygwin cross compiler using the sources
from the Cygwin 1.7 distro.  I used the following build flags:

  --disable-bootstrap --enable-version-specific-runtime-libs \
  --enable-static --enable-shared --enable-shared-libgcc \
  --disable-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 \
  --disable-sjlj-exceptions --enable-languages=c,c++ --disable-symvers \
  --enable-threads=posix --with-arch=i686 --with-tune=generic \

When I try to build Cygwin I get:

  cc1plus: error: command line option '-muse-libstdc-wrappers' is not
  supported by this configuration

What am I doing wrong?


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

More information about the Cygwin-patches mailing list