]> git.sesse.net Git - vlc/commitdiff
Contribs: make libass static on all platforms
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 4 Feb 2010 19:36:03 +0000 (21:36 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 4 Feb 2010 19:36:03 +0000 (21:36 +0200)
We only link it once, so this is more efficient. This allows the build
-time linker to remove unused functions and the export table.

We could probably do the same with a few other libraries.

extras/contrib/src/Makefile

index d4048c670f62d2902d52694f25eb63a3536d52d8..95f1e31c951721aa0f7958491dd8df9c315176a6 100644 (file)
@@ -2442,11 +2442,7 @@ libass:
        (cd $@; autoreconf -ivf)
 
 .libass: libass .freetype
-ifdef HAVE_DARWIN_OS
        (cd $<; $(HOSTCC) ./configure --disable-png --disable-shared $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -O3" && make && make install)
-else
-       (cd $<; $(HOSTCC) ./configure --disable-png $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -O3" && make && make install)
-endif
        touch $@
 
 CLEAN_FILE += .libass