]> git.sesse.net Git - vlc/commitdiff
Move libvlccore and libcompat to LDFLAGS from LIBADD
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 9 Sep 2012 13:27:10 +0000 (16:27 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 9 Sep 2012 13:27:10 +0000 (16:27 +0300)
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.

modules/common.am

index 806dec0dc10de244b80e6ee7ad474ac8b064e7e2..59a68d9c8664cb84c95eb1d8da2921e7a2659ca7 100644 (file)
@@ -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