mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
Add option to select which modules get linked in during static builds.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@404 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
9550c8ed80
commit
be2ba90175
2 changed files with 21 additions and 2 deletions
14
configure.ac
14
configure.ac
|
|
@ -297,6 +297,20 @@ AC_ARG_ENABLE(
|
|||
[STATIC_BINS=1], [STATIC_BINS=0])
|
||||
AM_CONDITIONAL([STATIC_BINS], [test "x$STATIC_BINS" = "x1"])
|
||||
|
||||
AC_ARG_WITH(
|
||||
[preopen-mods],
|
||||
AC_HELP_STRING([--with-preopen-mods],[Modules to preopen in daemon (default: all).]),
|
||||
[PREOPEN_MODS=$withval], [PREOPEN_MODS="all"])
|
||||
AM_CONDITIONAL([PREOPEN_MODS], [test "x$PREOPEN_MODS" != "xall"])
|
||||
if test "x$PREOPEN_MODS" != "xall" ; then
|
||||
tmpLIBS=""
|
||||
for mod in $PREOPEN_MODS; do
|
||||
tmpLIBS="$tmpLIBS module-$mod.la"
|
||||
done
|
||||
PREOPEN_MODS="$tmpLIBS"
|
||||
AC_SUBST(PREOPEN_MODS)
|
||||
fi
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
polyp/Makefile
|
||||
|
|
|
|||
|
|
@ -93,8 +93,13 @@ polypaudio_CFLAGS = $(AM_CFLAGS)
|
|||
polypaudio_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
polypaudio_LDADD = $(AM_LDADD) libpolypcore.la $(LIBLTDL) \
|
||||
$(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS)
|
||||
polypaudio_LDFLAGS= $(AM_LDFLAGS) $(BINLDFLAGS) -dlopen force
|
||||
#q-static $(foreach f,$(modlib_LTLIBRARIES),-dlpreopen $(f))
|
||||
polypaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
|
||||
|
||||
if PREOPEN_MODS
|
||||
PREOPEN_LIBS = $(PREOPEN_MODS)
|
||||
else
|
||||
PREOPEN_LIBS = $(modlib_LTLIBRARIES)
|
||||
endif
|
||||
|
||||
###################################
|
||||
# Utility programs #
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue