This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[patch] Update build flags for new compiler feature
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 02 Oct 2009 22:11:14 +0100
- Subject: [patch] Update build flags for new compiler feature
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).
cheers,
DaveK
--
(*) - I'm perfectly happy with the notion that if you want to run with the
bleeding edge y'gotta keep your prerequisites up-to-date too, and cygwin is
after all a self-hosted environment, and the distro compiler certainly
supports this feature :)
Index: winsup/cygwin/Makefile.in
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/Makefile.in,v
retrieving revision 1.229
diff -p -u -r1.229 Makefile.in
--- winsup/cygwin/Makefile.in 12 Jul 2009 21:15:46 -0000 1.229
+++ winsup/cygwin/Makefile.in 2 Oct 2009 15:31:32 -0000
@@ -55,7 +55,8 @@ CC:=@CC@
# FIXME: Which is it, CC or CC_FOR_TARGET?
CC_FOR_TARGET:=$(CC)
CFLAGS=@CFLAGS@
-override CFLAGS+=-MMD ${$(*F)_CFLAGS} -Werror -fmerge-constants -ftracer $(CCEXTRA)
+override CFLAGS+=-MMD ${$(*F)_CFLAGS} -Werror -fmerge-constants -ftracer \
+ -mno-use-libstdc-wrappers $(CCEXTRA)
CXX=@CXX@
override CXXFLAGS=@CXXFLAGS@