summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Mack <daniel@caiaq.de>2009-07-17 14:20:57 +0200
committerDaniel Mack <daniel@caiaq.de>2009-07-17 14:20:57 +0200
commit909dc093a5d33b5eed2c718187c7acce1c6d9bd0 (patch)
tree0fc5b87a19986e8141c74d36e3c7b51cff0343c3
parent5f5867e08ab8821447faacece92dab1e0b993fe4 (diff)
parent673112b192a9494ea96f7daca061b080db5d3977 (diff)
Merge branch 'master' of git://gitorious.org/~flameeyes/pulseaudio/flameeyes-pulseaudio
-rw-r--r--configure.ac9
-rw-r--r--src/Makefile.am2
2 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index cc7f674a..112a1a8f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -119,6 +119,15 @@ dnl other linkes might be added later
CC_CHECK_LDFLAGS([-Wl,-z,now], [IMMEDIATE_LDFLAGS="-Wl,-z,now"])
AC_SUBST([IMMEDIATE_LDFLAGS])
+dnl On ELF systems we don't want the libraries to be unloaded since we
+dnl don't clean them up properly, so we request the nodelete flag to be
+dnl enabled.
+dnl
+dnl On other systems, we don't really know how to do that, but it's
+dnl welcome if somebody can tell.
+CC_CHECK_LDFLAGS([-Wl,-z,nodelete], [NODELETE_LDFLAGS="-Wl,-z,nodelete"])
+AC_SUBST([NODELETE_LDFLAGS])
+
dnl Check for the proper way to build libraries that have no undefined
dnl symbols; on some hosts this needs to be avoided but the macro
dnl takes care of it.
diff --git a/src/Makefile.am b/src/Makefile.am
index ac627c84..c022fa7c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -87,7 +87,7 @@ AM_CFLAGS = \
AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS)
AM_LDADD = $(PTHREAD_LIBS) $(INTLLIBS)
-AM_LDFLAGS = -Wl,-z,nodelete
+AM_LDFLAGS = $(NODELETE_LDFLAGS)
if STATIC_BINS
BINLDFLAGS = -static