From eb209afd25d47c41a5d4733385cb4fa398c8b1e6 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 9 May 2012 23:05:38 +0200 Subject: instead of manually adding the --export-dynamic linker flag (platform dependant), let libtool do it --- configure.ac | 9 +-------- src/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index c45ac69..270acab 100644 --- a/configure.ac +++ b/configure.ac @@ -160,17 +160,10 @@ AC_ARG_ENABLE(console, [console=$enableval], [console=no]) if [[ $console = no ]]; then case $host in - *-*-mingw*) GTKAPP_LDFLAGS="$GTKAPP_LDFLAGS -mwindows" ;; + *-*-mingw*) GTKAPP_LDFLAGS="$GTKAPP_LDFLAGS -mwindows" ;; esac fi -# Export symbols -# necessary for auto-registering GTK+ signal handlers by GTK+ builder -case $host in -*-*-linux*) GTKAPP_LDFLAGS="$GTKAPP_LDFLAGS -Wl,--export-dynamic" ;; -*-*-mingw*) GTKAPP_LDFLAGS="$GTKAPP_LDFLAGS -Wl,--export-all-symbols" ;; -esac - AC_SUBST(GTKAPP_CFLAGS) AC_SUBST(GTKAPP_LDFLAGS) diff --git a/src/Makefile.am b/src/Makefile.am index cf6bf5f..f81a233 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,7 +7,7 @@ experiment_player_SOURCES = main.c quickopen.c \ experiment_player_CFLAGS = $(AM_CFLAGS) experiment_player_CPPFLAGS = -DDEFAULT_UI='"@DEFAULT_UI@"' \ -DHELP_URI='"@HELP_URI@"' -experiment_player_LDFLAGS = +experiment_player_LDFLAGS = -export-dynamic experiment_player_LDADD = if USE_W32_RES -- cgit v1.2.3