From 9c842281fab1da42a6e8b8303bd1b4ef76e33fd7 Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Tue, 12 May 2015 11:29:40 +0200 Subject: [PATCH] Make LIBOBJS available to libtool libs --- compat/Makefile.am | 10 +++++++++- src/Makefile.am | 5 +++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/compat/Makefile.am b/compat/Makefile.am index 34f1f06..bb98dfd 100644 --- a/compat/Makefile.am +++ b/compat/Makefile.am @@ -1,5 +1,13 @@ AUTOMAKE_OPTIONS = 1.10 foreign subdir-objects -EXTRA_DIST = compat.h +noinst_LTLIBRARIES = libcompat.la +noinst_HEADERS = compat.h +libcompat_la_SOURCES = +libcompat_la_DEPENDENCIES = @LTLIBOBJS@ +libcompat_la_LIBADD = $(libcompat_la_DEPENDENCIES) + +AM_CPPFLAGS = @EZ_CPPFLAGS@ +AM_CFLAGS = @EZ_CFLAGS@ +AM_LDFLAGS = @EZ_LDFLAGS@ -avoid-version CLEANFILES = *~ *.core core diff --git a/src/Makefile.am b/src/Makefile.am index 09bca46..9fabef4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -26,8 +26,9 @@ libezstream_la_SOURCES = \ playlist.c \ util.c \ xalloc.c -libezstream_la_DEPENDENCIES = -libezstream_la_LIBADD = @LIBOBJS@ @EZ_LIBS@ \ +libezstream_la_DEPENDENCIES = \ + $(top_builddir)/compat/libcompat.la +libezstream_la_LIBADD = @EZ_LIBS@ \ $(libezstream_la_DEPENDENCIES) bin_SCRIPTS = ezstream-file.sh