Mercurial > dovecot > core-2.2
diff configure.in @ 12893:0be58f3930b2
Use -Wl,--as-needed -Wl,--no-undefined GNU ld flags for non-plugins.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 30 Apr 2011 13:41:18 +0300 |
parents | 352999078d83 |
children | 80eef14e9e15 |
line wrap: on
line diff
--- a/configure.in Sat Apr 30 13:38:20 2011 +0300 +++ b/configure.in Sat Apr 30 13:41:18 2011 +0300 @@ -2632,6 +2632,11 @@ AC_DEFINE_UNQUOTED(CAPABILITY_BANNER_STRING, "$capability_banner", IMAP capabilities advertised in banner) CFLAGS="$CFLAGS $EXTRA_CFLAGS" +if test "$with_gnu_ld" = yes; then + NOPLUGIN_LDFLAGS="-Wl,--as-needed -Wl,--no-undefined" + LDFLAGS="\$(NOPLUGIN_LDFLAGS) $LDFLAGS" + AC_SUBST(NOPLUGIN_LDFLAGS) +fi if test "$docdir" = ""; then dnl docdir supported only by autoconf v2.59c and later