[dasher] Move -export-dynamic flag so it is only used by libtool. Report by Brian Cameron and Daniel Macks in



commit 68f96e073a8698f373c663b035b891725f58120b
Author: Patrick Welche <prlw1 cam ac uk>
Date:   Mon Apr 12 19:55:12 2010 +0100

    Move -export-dynamic flag so it is only used by libtool.
    Report by Brian Cameron and Daniel Macks in #613001.

 ChangeLog    |    5 +++++
 configure.ac |   11 +++++------
 2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 812bd94..c967d71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-12  Patrick Welche <prlw1 cam ac uk>
+
+	* configure.ac: Move -export-dynamic flag so it is only used by
+	  libtool. Report by Brian Cameron and Daniel Macks in #613001.
+
 2010-04-09  Patrick Welche <prlw1 cam ac uk>
 
 	* Fix Sun Studio compiler build - from Brian Cameron in #613000
diff --git a/configure.ac b/configure.ac
index 80ab0b9..8887b5c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -219,12 +219,6 @@ fi
 DAM_GCONF_SOURCE_2
 if test x$BUILDGTK2 = xtrue
 then
-# GtkBuilder's autoconnect feature requires dasher to be linked with
-# the --export-dynamic flag. pkg-config does not provide it, and libtool
-# knows what to do with -export-dynamic.
-# (We need this e.g., for <object class="DasherEditor">)
-	GTK2_LIBS="$GTK2_LIBS -export-dynamic"
-
 	PKG_CHECK_MODULES(GCONF, gconf-2.0,
 		[AC_DEFINE([WITH_GCONF], 1, [Use GConf])],
 		[AC_MSG_WARN([GConf was not detected - user preferences will not be stored.])])
@@ -242,6 +236,11 @@ then
 	)
 	CFLAGS="$save_CFLAGS"
 	LIBS="$save_LIBS"
+# GtkBuilder's autoconnect feature requires dasher to be linked with
+# the --export-dynamic flag. pkg-config does not provide it, and libtool
+# knows what to do with -export-dynamic.
+# (We need this e.g., for <object class="DasherEditor">)
+	GTK2_LIBS="$GTK2_LIBS -export-dynamic"
 else
 	AC_MSG_ERROR("Unable to find GTK2 or another necessary library.")
 fi



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]