From d0232e81fdf97c98f3501ae0eb54af8fc734c415 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Wed, 17 Apr 2024 13:51:06 +1000 Subject: [PATCH] hints/netbsd.sh: prevent noise when checking for --whole-archive https://www.nntp.perl.org/group/perl.perl5.porters/2024/04/msg268141.html --- hints/netbsd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hints/netbsd.sh b/hints/netbsd.sh index 5c9f5bcbd50f..85e029f5eaee 100644 --- a/hints/netbsd.sh +++ b/hints/netbsd.sh @@ -40,8 +40,8 @@ case "$osvers" in # gcc 4.6 doesn't support --whole-archive, but it's required for the # system gcc to build correctly, so check for it echo 'int f(void) { return 0; }' >try.c -if ${cc:-cc} $cccdlflags -c try.c -otry.o 2>&1 && - ${cc:-cc} --whole-archive $lddlflags try.o -otry.so 2>&1 ; then +if ${cc:-cc} $cccdlflags -c try.c -otry.o >/dev/null 2>&1 && + ${cc:-cc} --whole-archive $lddlflags try.o -otry.so >/dev/null 2>&1 ; then lddlflags="--whole-archive $lddlflags" fi rm try.c try.o try.so 2>/dev/null