dovecot-2.1: configure: Use libtool's -no-undefined flag instead...

dovecot at dovecot.org dovecot at dovecot.org
Sat Nov 5 20:25:35 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/3ecd119bd63b
changeset: 13666:3ecd119bd63b
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Nov 05 20:35:56 2011 +0200
description:
configure: Use libtool's -no-undefined flag instead of attempting it ourself.
Patch by Brad.

diffstat:

 configure.in |  15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diffs (27 lines):

diff -r afec4ceda8e1 -r 3ecd119bd63b configure.in
--- a/configure.in	Sat Nov 05 19:59:55 2011 +0200
+++ b/configure.in	Sat Nov 05 20:35:56 2011 +0200
@@ -2673,19 +2673,12 @@
 AC_DEFINE_UNQUOTED(CAPABILITY_BANNER_STRING, "$capability_banner", IMAP capabilities advertised in banner) 
 
 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
+NOPLUGIN_LDFLAGS="-no-undefined"
 if test "$with_gnu_ld" = yes; then
-  NOPLUGIN_LDFLAGS="-Wl,--as-needed"
-  case "$host_os" in
-    linux*)
-      # This appears to work in Linux, but not in BSDs..
-      NOPLUGIN_LDFLAGS="$NOPLUGIN_LDFLAGS -Wl,--no-undefined"
-      ;;
-    *)
-      ;;
-  esac
-  LDFLAGS="\$(NOPLUGIN_LDFLAGS) $LDFLAGS"
-  AC_SUBST(NOPLUGIN_LDFLAGS)
+  NOPLUGIN_LDFLAGS="$NOPLUGIN_LDFLAGS -Wl,--as-needed"
 fi
+LDFLAGS="\$(NOPLUGIN_LDFLAGS) $LDFLAGS"
+AC_SUBST(NOPLUGIN_LDFLAGS)
 
 if test "$docdir" = ""; then
   dnl docdir supported only by autoconf v2.59c and later


More information about the dovecot-cvs mailing list