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