e.g. gnatmake foo.adb -largs -Wl,-ld_classic
or gprbuild -P foo -largs -Wl,-ld_classic
or alr build -- -largs -Wl,-ld_classic
The GNAT tools use gcc to drive the system linker ld. When gcc sees
-Wl,-foo,bar it sends "-foo bar" to ld (the 'l' means 'linker'; see the
GCC switches web page for the other possibilities).
When /usr/bin/ld (from Xcode 15) sees -ld_classic, rather than taking it
as an instruction to process libld_classic.{a,dylib}, it delegates the
actual link to /Library/Developer/CommandLineTools/usr/bin/ld-classic.
Wow.
You could always download the 15.1 beta version of the tools package
from
developer.apple.com