]> git.sesse.net Git - vlc/commitdiff
compat: install the static import library
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 19 Jan 2012 18:05:48 +0000 (20:05 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 19 Jan 2012 18:12:14 +0000 (20:12 +0200)
With libcompat installed (into $(prefix)/lib/vlc/ or whatever), libtool
will actually pull only needed functions from the static import library
libcompat.a. Previously, it would copy every compat functions into
every VLC binaries. This should shrink plugins a bit.

compat/Makefile.am

index 3241924c3da556c8bb4170c21b368a0bd60f8579..8f0c27c326b04d78283f9416c0768befe1f8d114 100644 (file)
@@ -1,7 +1,7 @@
-noinst_LTLIBRARIES = libcompat.la
+pkglib_LTLIBRARIES = libcompat.la
 libcompat_la_SOURCES = dummy.c
 libcompat_la_LIBADD = $(LTLIBOBJS)
-libcompat_la_LDFLAGS = -no-undefined
+libcompat_la_LDFLAGS = -no-undefined -static
 
 BUILT_SOURCES = dummy.c
 CLEANFILES = dummy.c