mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
add new configure option to enable preloading even on architectures that support dlopen(). Useful for debugging
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@700 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
df108afe35
commit
1f7a008f43
2 changed files with 12 additions and 1 deletions
|
|
@ -398,6 +398,12 @@ if test "x$PREOPEN_MODS" != "xall" ; then
|
||||||
AC_SUBST(PREOPEN_MODS)
|
AC_SUBST(PREOPEN_MODS)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(
|
||||||
|
[force-preopen],
|
||||||
|
AC_HELP_STRING([--enable-force-preopen],[Preopen modules, even when dlopen() is supported.]),
|
||||||
|
[FORCE_PREOPEN=1], [FORCE_PREOPEN=0])
|
||||||
|
AM_CONDITIONAL([FORCE_PREOPEN], [test "x$FORCE_PREOPEN" = "x1"])
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,6 @@ polypaudio_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
|
||||||
polypaudio_CPPFLAGS = $(AM_CPPFLAGS)
|
polypaudio_CPPFLAGS = $(AM_CPPFLAGS)
|
||||||
polypaudio_LDADD = $(AM_LDADD) libpolypcore.la $(LIBLTDL) \
|
polypaudio_LDADD = $(AM_LDADD) libpolypcore.la $(LIBLTDL) \
|
||||||
$(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS) $(LIBOIL_LIBS)
|
$(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS) $(LIBOIL_LIBS)
|
||||||
polypaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
|
|
||||||
|
|
||||||
if PREOPEN_MODS
|
if PREOPEN_MODS
|
||||||
PREOPEN_LIBS = $(PREOPEN_MODS)
|
PREOPEN_LIBS = $(PREOPEN_MODS)
|
||||||
|
|
@ -117,6 +116,12 @@ else
|
||||||
PREOPEN_LIBS = $(modlib_LTLIBRARIES)
|
PREOPEN_LIBS = $(modlib_LTLIBRARIES)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if FORCE_PREOPEN
|
||||||
|
polypaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlpreopen force $(foreach f,$(PREOPEN_LIBS),-dlpreopen $(f))
|
||||||
|
else
|
||||||
|
polypaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
|
||||||
|
endif
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
# Utility programs #
|
# Utility programs #
|
||||||
###################################
|
###################################
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue