From: Aki Tuomi Date: Wed, 21 Jan 2026 08:14:17 +0000 (+0200) Subject: configure: Include libiconv in linker flags when needed X-Git-Tag: 2.4.3~325 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77fe3cab979173a7cb9357e09a9dfd879fa6fd5c;p=thirdparty%2Fdovecot%2Fcore.git configure: Include libiconv in linker flags when needed --- diff --git a/configure.ac b/configure.ac index 4fdc986188..a4b5ecc02d 100644 --- a/configure.ac +++ b/configure.ac @@ -28,6 +28,8 @@ PKG_PROG_PKG_CONFIG ACLOCAL_AMFLAGS='-I $(top_srcdir)/m4' AC_SUBST(ACLOCAL_AMFLAGS) +AM_ICONV + AC_ARG_ENABLE(devel-checks, AS_HELP_STRING([--enable-devel-checks], [Enable some extra expensive checks for developers]), if test x$enableval = xyes; then @@ -809,7 +811,7 @@ NOPLUGIN_LDFLAGS="-no-undefined" if test "$with_gnu_ld" = yes; then NOPLUGIN_LDFLAGS="$NOPLUGIN_LDFLAGS -Wl,--as-needed" fi -LDFLAGS="\$(NOPLUGIN_LDFLAGS) $LDFLAGS $EXTRA_LDFLAGS" +LDFLAGS="\$(NOPLUGIN_LDFLAGS) $LDFLAGS $EXTRA_LDFLAGS $LTLIBICONV" AC_SUBST(NOPLUGIN_LDFLAGS) DC_CC_WRAPPER