]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Include libiconv in linker flags when needed
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 21 Jan 2026 08:14:17 +0000 (10:14 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 21 Jan 2026 09:42:06 +0000 (11:42 +0200)
configure.ac

index 4fdc986188e7903592a2ee80cf846a2d5abb0549..a4b5ecc02d77551d40d874d971842702bf002e47 100644 (file)
@@ -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