Compilation fails on macOS due to unknown linker option `--no-whole-archive`
macOS 12.1 (21C5039b)
Darwin Kernel Version 21.2.0: Thu Nov 11 00:10:13 PST 2021; root:xnu-8019.60.69~7/RELEASE_X86_64 x86_64
git master @ 26a2787d
ld -v
@(#)PROGRAM:ld PROJECT:ld64-711
BUILD 01:44:29 Nov 9 2021
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
LTO support using: LLVM version 13.0.0, (clang-1300.0.29.30) (static support for 27, runtime is 27)
TAPI support using: Apple TAPI version 13.0.0 (tapi-1300.0.6.5)
CCLD libwget_alloc.la
ld: unknown option: --no-whole-archive
clang: error: linker command failed with exit code 1 (use -v to see invocation)