>>>> "Stephen" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
Stephen> Unfortunately, it's possible that even if gcc is available to use as
Stephen> the linker, the linker may get called directly. So using -Wl, or
Stephen> -Xlinker is risky too. :-(
A look through the configuration data makes me think that at worst this would
only be a problem for Decstations and IRIX 5.1 boxes (and then only if GNU ld
is in the path) because everything else uses some variation of $(CC) as the
linker.
The solution seems to be to move the test for nocombreloc in configure.in to
before the definition of XE_PROTECT_LINKER_FLAGS and then use that macro to
properly quote the -z argument (with -Xlinker) if gcc is being used. This
macro is used to protect other linker arguments, so I don't see why this one
should be any different.
This works for me here and a patch is forthcoming.
Malcolm