[Spice-devel] [PATCH 1/7] Add configure-time check for -Wl, --version-script option

Dan McGee dpmcgee at gmail.com
Tue Feb 21 08:15:42 PST 2012


On Fri, Feb 17, 2012 at 4:21 AM, Daniel P. Berrange <berrange at redhat.com> wrote:
> The Solaris linker does actually support version scripts using the
> exact same file syntax as the GNU linker. The only thing that is different
> is the linker command line arg.
Yes, using the -M option, I did see that much.

> Mingw32 supports the same linker flags,
> but requires a different file syntax (which can be auto-generated from
> a .version file with awk/sed)
>
> So in libvirt/GTK-VNC we use the following m4 magic in configure to detect
> the suitable linker args
I'll take a look at this and see if I can't come up with a follow-up
patch to try as hard as possible to include symbol versions.

I would still appreciate it if the original patch got in, as linking
without a symbol map is better than failing to link at all due to
invalid options, and the original patch will work exactly as before
using the Linux linker.

-Dan


More information about the Spice-devel mailing list