Commit 003f74f1 authored by Sam Hocevar's avatar Sam Hocevar

* ./bootstrap, ./Makefile.am: we don't build static libraries if their only

    goal is to provide dependencies for shared libraries.
parent 93848f0d
...@@ -446,25 +446,27 @@ SOURCES_mozilla_unix = mozilla/npunix.c ...@@ -446,25 +446,27 @@ SOURCES_mozilla_unix = mozilla/npunix.c
endif endif
if BUILD_MOZILLA if BUILD_MOZILLA
noinst_LIBRARIES_mozilla = mozilla/libvlcplugin.a if UNTRUE
noinst_LIBRARIES_mozilla = mozilla/libplugin.a
mozilla_libvlcplugin_a_SOURCES = $(SOURCES_mozilla) $(BUILT_SOURCES_mozilla) \ endif
$(SOURCES_libgetopt)
mozilla_libvlcplugin_a_CFLAGS = $(CPPFLAGS_pic) $(CFLAGS_pic) \ mozilla_libplugin_a_SOURCES = $(SOURCES_mozilla) $(BUILT_SOURCES_mozilla) \
$(CPPFLAGS_mozilla) $(CFLAGS_mozilla) \ $(SOURCES_libgetopt)
$(CPPFLAGS_mozilla_EXTRA) mozilla_libplugin_a_CFLAGS = $(CPPFLAGS_pic) $(CFLAGS_pic) \
mozilla_libvlcplugin_a_CXXFLAGS = $(CPPFLAGS_pic) $(CXXFLAGS_pic) \ $(CPPFLAGS_mozilla) $(CFLAGS_mozilla) \
$(CPPFLAGS_mozilla) $(CXXFLAGS_mozilla) \ $(CPPFLAGS_mozilla_EXTRA)
$(CPPFLAGS_mozilla_EXTRA) mozilla_libplugin_a_CXXFLAGS = $(CPPFLAGS_pic) $(CXXFLAGS_pic) \
mozilla_libvlcplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(L_builtin_pic) $(DATA_npvlc_rc) $(CPPFLAGS_mozilla) $(CXXFLAGS_mozilla) \
$(CPPFLAGS_mozilla_EXTRA)
mozilla_libplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(L_builtin_pic) $(DATA_npvlc_rc)
BUILT_SOURCES_mozilla = mozilla/vlcintf.h BUILT_SOURCES_mozilla = mozilla/vlcintf.h
$(SOURCES_mozilla): mozilla/vlcintf.h $(SOURCES_mozilla): mozilla/vlcintf.h
mozilla_plugin_DATA = $(LIBRARIES_mozilla) mozilla_plugin_DATA = $(LIBRARIES_mozilla)
mozilla_plugindir = $(libdir)/mozilla/plugins mozilla_plugindir = $(libdir)/mozilla/plugins
$(LIBRARIES_mozilla): mozilla/libvlcplugin.a $(L_builtin_pic) $(LIBRARIES_mozilla): $(mozilla_libplugin_a_OBJECTS) $(L_builtin_pic)
$(CXXLINK) -o $@ $(mozilla_libvlcplugin_a_OBJECTS) $(DATA_npvlc_rc) \ $(CXXLINK) -o $@ $(mozilla_libplugin_a_OBJECTS) $(DATA_npvlc_rc) \
lib/libvlc_pic.a $(L_builtin_pic) -shared $(LDFLAGS) \ lib/libvlc_pic.a $(L_builtin_pic) -shared $(LDFLAGS) \
$(LDFLAGS_vlc) $(LDFLAGS_mozilla) $(LDFLAGS_builtin_pic) $(LDFLAGS_vlc) $(LDFLAGS_mozilla) $(LDFLAGS_builtin_pic)
......
#! /bin/sh #! /bin/sh
## bootstrap file for vlc, the VideoLAN Client ## bootstrap file for vlc, the VideoLAN Client
## $Id: bootstrap,v 1.19 2002/10/16 15:10:38 sam Exp $ ## $Id: bootstrap,v 1.20 2002/10/25 09:24:29 sam Exp $
## ##
## Authors: Samuel Hocevar <sam@zoy.org> ## Authors: Samuel Hocevar <sam@zoy.org>
...@@ -107,7 +107,9 @@ EOF ...@@ -107,7 +107,9 @@ EOF
# The ${mod} plugin # The ${mod} plugin
if ${mod}_plugin if ${mod}_plugin
if UNTRUE
L_${mod}_p = ${dir}/lib${mod}_plugin.a L_${mod}_p = ${dir}/lib${mod}_plugin.a
endif
D_${mod}_p = ${dir}/lib${mod}_plugin\$(LIBEXT) D_${mod}_p = ${dir}/lib${mod}_plugin\$(LIBEXT)
${NODIST}B_${mod}_p = \$(nodist_SOURCES_${mod}) ${NODIST}B_${mod}_p = \$(nodist_SOURCES_${mod})
endif endif
...@@ -160,6 +162,7 @@ EOF ...@@ -160,6 +162,7 @@ EOF
done done
done done
echo "AM_CONDITIONAL(UNTRUE, false)" >> configure.ac
sed -n -e '/dnl do not touch this line/,//p' < configure.ac.in >> configure.ac sed -n -e '/dnl do not touch this line/,//p' < configure.ac.in >> configure.ac
echo "done." echo "done."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment