Eric Blake <e...@byu.net> writes: > Eric Blake <ebb9 <at> byu.net> writes: > >> >> So, what should I do? Options: >> 1. Check in the patches below as-is >> 2. Ditch this series, and instead go and change all uses of >> GNULIB_POSIXCHECK >> that used >> #define func(args) (GL_LINK_WARNING("..."),func(args)) >> to instead use >> #define func (GL_LINK_WARNING("..."),func) >> 3. Like 2, but also check in the new va-args module (others might have a use >> for it, even though it would be unused in gnulib at this point) > > Another thing to consider. Why are we even bothering with a link warning, > which only works for ELF, when gcc provides a more generic solution that will > also work for Cygwin and other non-ELF platforms?
Because gcc is not the only supported compiler? However, looking at link-warning.h, it seems it only works when the system uses GNU LD _and_ ELF. So I'm not sure link-warning.h provides anything substantial that a Gcc-specific solution wouldn't. Are there popular environments that use GNU LD but not Gcc? Adding support for cygwin would be useful though. /Simon