Linking DrSPINE on macOS
When linking DrSPINE on macOS you may get the following warning:
ld: warning: ignoring duplicate libraries: '-lgcc', '-lgcc_s.1.1'
to silence it add this line to Makefile.def
LDFLAGS += -Wl,-ld_classic
The issue comes when running gcc v13 installed with homebrew (tried on Sonoma and Monterey).
$ gfortran --version
GNU Fortran (Homebrew GCC 13.2.0) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This is not a bug in DrSPINE, see also https://stackoverflow.com/questions/77164140/ld-warning-ignoring-duplicate-libraries-lgcc-after-the-recent-update-of-xc