summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2008-06-06 10:46:30 +0000
committerTor Lillqvist <tml@src.gnome.org>2008-06-06 10:46:30 +0000
commite9f523270c8a2cddb52bdad5738da686c2d1f68f (patch)
tree3127e2339ead17eb79df88b64a516c0e91768140 /configure.in
parent23fe434cf90a48165e9243867d0c6c5bd15a2823 (diff)
downloadevolution-data-server-e9f523270c8a2cddb52bdad5738da686c2d1f68f.tar.gz
Add a couple of -Wl,--exclude-libs options on Windows to avoid needlessly
2008-06-06 Tor Lillqvist <tml@novell.com> * configure.in: Add a couple of -Wl,--exclude-libs options on Windows to avoid needlessly auto-exporting functions from static libiconv and libdb-4.1 when linked into e-d-s's DLLs. svn path=/trunk/; revision=8943
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 23c015784..08288ac71 100644
--- a/configure.in
+++ b/configure.in
@@ -276,6 +276,11 @@ if test "x${dynamic_libdb}" = "xyes"; then
else
DB_CFLAGS="-I\$(top_builddir)/libdb/dist"
DB_LIBS="\$(top_builddir)/libdb/dist/libdb-4.1.la"
+ if test $os_win32 = yes; then
+ # Don't pointlessly auto-export the global symbols
+ # from the static libdb
+ DB_LIBS="$DB_LIBS -Wl,--exclude-libs=libdb-4.1.a"
+ fi
AC_MSG_NOTICE(Using local libdb)
msg_libdb="statically linked to local copy"
fi
@@ -315,6 +320,11 @@ int main (int argc, char **argv)
], ac_cv_libiconv=yes, ac_cv_libiconv=no, ac_cv_libiconv=no))
if test $ac_cv_libiconv = yes; then
ICONV_LIBS="$ICONV_LIBS -liconv"
+ if test $os_win32 = yes; then
+ # Don't pointlessly auto-export the global symbols
+ # from a potentially static libiconv.a
+ ICONV_LIBS="$ICONV_LIBS -Wl,--exclude-libs=libiconv.a"
+ fi
have_iconv=yes
else
CFLAGS="$save_CFLAGS"