aports/testing/silc-client/irssi-configure-gcc14.patch
Celeste 4c156dcc2e testing/silc-client: fix configure script with gcc 14
it was failing to find perl, so didn't build the plugin,
which caused the `rm perllocal.pod` in package() to fail
2024-09-29 08:01:06 +00:00

13 lines
725 B
Diff

--- a/apps/irssi/configure
+++ b/apps/irssi/configure
@@ -15109,8 +15109,8 @@
;;
esac
- echo "main(){perl_alloc(); return 0;}" > conftest.c
- $CC $CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> perl.error.tmp > /dev/null
+ printf '#include <EXTERN.h>\n#include <perl.h>\nint main(){perl_alloc(); return 0;}' > conftest.c
+ $CC $CFLAGS $PERL_CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> perl.error.tmp > /dev/null
if test ! -s conftest -a "x$ignore_perl_errors" = "x"; then
perl_check_error="Error linking with perl libraries: $PERL_LDFLAGS: `cat perl.error.tmp`"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: error linking with perl libraries, building without Perl" >&5