From: Dave Korn Date: Thu, 21 Jan 2010 04:56:38 +0000 (+0000) Subject: re PR target/42818 (Static C++ linking breakage "undefined reference to ___real__Znwj... X-Git-Tag: releases/gcc-4.5.0~1110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=907c6efdbc255042ab1ece9179511b78f426cb00;p=thirdparty%2Fgcc.git re PR target/42818 (Static C++ linking breakage "undefined reference to ___real__Znwj" and others in libcygwin.a(_cygwin_crt0_common.o)) PR target/42818 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers, even when linking statically, for now. From-SVN: r156105 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4ec8ee68706d..8b18dbd4c32e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-01-21 Dave Korn + + PR target/42818 + * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers, + even when linking statically, for now. + 2010-01-20 Alexandre Oliva PR debug/42715 diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 86eff635ae6d..0a395c64ecc2 100644 --- a/gcc/config/i386/cygwin.h +++ b/gcc/config/i386/cygwin.h @@ -87,7 +87,7 @@ along with GCC; see the file COPYING3. If not see /* To implement C++ function replacement we always wrap the cxx malloc-like operators. See N2800 #17.6.4.6 [replacement.functions] */ -#define CXX_WRAP_SPEC_LIST "%{!static: %{!static-libstdc++: \ +#define CXX_WRAP_SPEC_LIST " \ --wrap _Znwj \ --wrap _Znaj \ --wrap _ZdlPv \ @@ -96,7 +96,7 @@ along with GCC; see the file COPYING3. If not see --wrap _ZnajRKSt9nothrow_t \ --wrap _ZdlPvRKSt9nothrow_t \ --wrap _ZdaPvRKSt9nothrow_t \ - }}" +" #if defined (USE_CYGWIN_LIBSTDCXX_WRAPPERS)