changeset 3539:187908c7ec02 trunk

set EXPORTDYN to -Wl,-export-dynamic if needed.
author William Pitcock <nenolod@atheme.org>
date Mon, 17 Sep 2007 13:35:55 -0500
parents 1f75259a1cac
children 2c036b972c14
files configure.ac extra.mk.in src/audacious/Makefile
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Mon Sep 17 13:24:14 2007 -0500
+++ b/configure.ac	Mon Sep 17 13:35:55 2007 -0500
@@ -188,10 +188,13 @@
 		LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework Carbon"
 		;;
 	*)
+		EXPORTDYN="-Wl,-export-dynamic"
 		AC_MSG_RESULT([no])
 		;;
 esac
 
+AC_SUBST(EXPORTDYN)
+
 dnl chardet support
 dnl ========================
 AC_ARG_ENABLE(chardet,
--- a/extra.mk.in	Mon Sep 17 13:24:14 2007 -0500
+++ b/extra.mk.in	Mon Sep 17 13:35:55 2007 -0500
@@ -340,3 +340,4 @@
 TRANSPORT_PLUGIN_DIR ?= @TRANSPORT_PLUGIN_DIR@
 TRANSPORT_PLUGINS ?= @TRANSPORT_PLUGINS@
 PCH ?= @PCH@
+EXPORTDYN ?= @EXPORTDYN@
--- a/src/audacious/Makefile	Mon Sep 17 13:24:14 2007 -0500
+++ b/src/audacious/Makefile	Mon Sep 17 13:35:55 2007 -0500
@@ -136,6 +136,8 @@
 LIBS += -L../libaudclient -laudclient
 endif
 
+LDFLAGS += ${EXPORTDYN}
+
 depend-hook: $(DBUS_BINDINGS)
 
 CPPFLAGS += -DHAVE_CONFIG_H \