Skip to content

Commit

Permalink
hints/netbsd.sh: prevent noise when checking for --whole-archive
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Apr 17, 2024
1 parent be3876f commit d0232e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hints/netbsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0232e8

Please sign in to comment.