bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld-output-def


From: Bruno Haible
Subject: Re: ld-output-def
Date: Wed, 1 Apr 2009 01:52:49 +0200
User-agent: KMail/1.9.9

Hi Simon, Ralf,

Your documented example looks like this:

> +if HAVE_LD_OUTPUT_DEF
> +libfoo_la_LDFLAGS += -Wl,--output-def,libfoo-$(SOVERSION).def
> +defexecdir = $(bindir)
> +defexec_DATA = libfoo-$(SOVERSION).def
> +DISTCLEANFILES += $(defexec_DATA)
> +endif

What is $(SOVERSION) ? As I understand it, libfoo-$(SOVERSION).def should
match the basename of libfoo-$(SOVERSION).dll, right? But that basename is
determined by libtool from the L:T:V triple that gets passed as
-version-info argument, in an undocumented (platform dependent) way.
Right? Then, the --output-def functionality should be available
through libtool. We are not supposed to define and update manually an
SOVERSION macro that is actually the result of some computations done by
libtool.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]