This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Fix build on PE-COFF targets and PR40125
* Ralf Wildenhues wrote on Sun, Nov 28, 2010 at 07:13:01PM CET:
> Libtool has its undefined flag set to something like this. Why would it
> be necessary to try to override it? Also, the libtool script will eat
> those arguments not prefixed with -Wl, anyway. To me it seems the
> darwin special case is not needed at all.
At least, the only reason I've seen so far for not using -no-undefined
everywhere is that on some systems, libtool takes it to pass '-z defs'
to the linker. Now, when you link against a system library that itself
has undefined symbols, the link may fail. I've seen instances of this
If it causes problems on Darwin, then it's probably better to fix
libtool.m4 to adjust.