configure: incorrect check for LD supports response files
I think I've found a bug in configure, m4/fp_ld_supports_response_files. We're trying LD on -shared and -dylib, but the configure check fails on my machine for reasons unrelated to the flag
> ld -dylib @args.txt
ld: dynamic executables or dylibs must link with libSystem.dylib for architecture arm64
In contrast, -shared and -dylib work both as flags to the CC (see CC link options) and as flags to the linker through the Cc
> gcc -Wl,-dylib @args.txt
# works
We don't ever call LD directly (see !10549 (closed)), so I think we should upgrade this check to pass the link flags through the c compiler as GHC ultimately does.