1 diff -urNp -x '*.orig' irssi-1.2.2.org/configure.ac irssi-1.2.2/configure.ac
2 --- irssi-1.2.2.org/configure.ac 2021-05-04 21:23:37.126601768 +0200
3 +++ irssi-1.2.2/configure.ac 2021-05-04 21:23:37.263275533 +0200
4 @@ -431,7 +431,7 @@ if test "$want_perl" != "no"; then
5 AC_MSG_RESULT([not found, building without Perl])
8 - PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null`
9 + PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null | sed -e 's/-Wl,--as-needed//'`
11 dnl * remove all database stuffs
12 dnl * nsl is already in ldflags