Mercurial > dovecot > core-2.2
changeset 13666:3ecd119bd63b
configure: Use libtool's -no-undefined flag instead of attempting it ourself.
Patch by Brad.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 05 Nov 2011 20:35:56 +0200 |
parents | afec4ceda8e1 |
children | 9da49294f49d |
files | configure.in |
diffstat | 1 files changed, 4 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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