[vlc-commits] Move libvlccore and libcompat to LDFLAGS from LIBADD

Rémi Denis-Courmont git at videolan.org
Sun Sep 9 15:29:55 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep  9 16:27:10 2012 +0300| [8ac45478b4cddfb3ea83feefbad3e98de0397ac2] | committer: Rémi Denis-Courmont

Move libvlccore and libcompat to LDFLAGS from LIBADD

An ABI change to libvlccore or libcompat will always be signaled by a
change in a header file. That change will trigger a recompilation and
then relinking of affected plugins.

Thus, there is no need for libvlccore.la and libcompat.la to be
explicit dependencies of plugins. This small hack avoids relinking
every plugin whenever the libvlccore is rebuilt.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8ac45478b4cddfb3ea83feefbad3e98de0397ac2
---

 modules/common.am |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/common.am b/modules/common.am
index 806dec0..59a68d9 100644
--- a/modules/common.am
+++ b/modules/common.am
@@ -26,12 +26,13 @@ endif
 AM_CFLAGS =
 AM_CXXFLAGS =
 AM_OBJCFLAGS =
+AM_LIBADD = $(LIBPTHREAD)
 AM_LDFLAGS = -rpath '$(libvlcdir)' \
 	-avoid-version -module \
 	-export-symbols-regex ^vlc_entry \
 	-shrext $(LIBEXT) \
-	-no-undefined
-AM_LIBADD = $(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la $(LIBPTHREAD)
+	-no-undefined \
+	$(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la
 
 include $(srcdir)/Modules.am
 



More information about the vlc-commits mailing list