[Libosinfo] [libosinfo PATCH v2 1/2] osinfo: Create an intermediate convenience library

Christophe Fergeau cfergeau at redhat.com
Wed Nov 21 10:43:34 UTC 2018


On Wed, Nov 21, 2018 at 09:08:05AM +0000, Daniel P. Berrangé wrote:
> On Wed, Nov 21, 2018 at 09:44:47AM +0100, Christophe Fergeau wrote:
> > > -nodist_libosinfo_1_0_la_SOURCES =	\
> > > +nodist_libosinfo_impl_la_SOURCES =	\
> > >    osinfo_enum_types.c			\
> > >    $(NULL)
> > >  
> > > +lib_LTLIBRARIES = libosinfo-1.0.la
> > > +
> > > +libosinfo_1_0_la_SOURCES =
> > > +
> > > +libosinfo_1_0_la_LIBADD = libosinfo-impl.la
> > > +libosinfo_1_0_la_LIBADD += $(libosinfo_impl_la_LIBADD)
> > > +
> > > +libosinfo_1_0_la_LDFLAGS = \
> > > +	$(COVERAGE_LDFLAGS) \
> > > +	$(VERSION_SCRIPT_FLAGS)$(LIBOSINFO_VERSION_FILE) \
> > > +        -version-info $(LIBOSINFO_VERSION_INFO) \
> > > +	$(NO_UNDEFINED_FLAGS)
> > > +
> > > +libosinfo_1_0_la_DEPENDENCIES = libosinfo.syms libosinfo-impl.la
> > 
> > Here, I would expect libtool to be able to infer the libosinfo-impl.la
> > dependency from 'libosinfo_1_0_la_LIBADD = libosinfo-impl.la' above
> 
> IIRC there is a problem - if you specify _DEPENDENCIES = ... at all,
> as needed for the libosinfo.syms file, then I believe it discards the
> default dependancy on libosinfo-impl.la

Ah right, we need EXTRA_..._DEPENDENCIES = libosinfo.syms
https://www.gnu.org/software/automake/manual/automake.html#index-EXTRA_005fmaude_005fDEPENDENCIES-1
https://gitlab.freedesktop.org/spice/spice-gtk/commit/ed876b4cc

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20181121/2e0074e9/attachment.sig>


More information about the Libosinfo mailing list