]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Use libtool's -no-undefined flag instead of attempting it ourself.
authorTimo Sirainen <tss@iki.fi>
Sat, 5 Nov 2011 18:35:56 +0000 (20:35 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 5 Nov 2011 18:35:56 +0000 (20:35 +0200)
Patch by Brad.

configure.in

index d2e90c2722cd21d46904ee539bbe168c6024bec6..32f154c460e416335b425f8a45e66c998efab76d 100644 (file)
@@ -2673,19 +2673,12 @@ AC_DEFINE_UNQUOTED(CAPABILITY_STRING, "$capability", IMAP capabilities)
 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