From: Timo Sirainen Date: Sat, 5 Nov 2011 18:35:56 +0000 (+0200) Subject: configure: Use libtool's -no-undefined flag instead of attempting it ourself. X-Git-Tag: 2.1.beta1~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d1ae898c54dfc33a0fc1b189855d976fbce2d7c;p=thirdparty%2Fdovecot%2Fcore.git configure: Use libtool's -no-undefined flag instead of attempting it ourself. Patch by Brad. --- diff --git a/configure.in b/configure.in index d2e90c2722..32f154c460 100644 --- a/configure.in +++ b/configure.in @@ -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