From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-91-241.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=none autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT linking and macOS Date: Thu, 28 Sep 2023 14:32:47 +0100 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="f11e4b71224519ee7e9dc80c08b5d4c4"; logging-data="3896174"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RRjI0lsqcRgAiXSpIuWzHj0hqr0NlQUk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cancel-Lock: sha1:uPQg+zLVujuAbmXwWRhNtayvvZg= sha1:VlMOoFrT6AeDlz0E5P2KEFn4cUo= Xref: news.eternal-september.org comp.lang.ada:65743 List-Id: moi writes: > I installed 14.0, Sonoma, on my M1 Mac last night. > > The good news: > > Using GNAT 12.2.0, it all just works, *so long as* I REMOVE > '-largs -Wl,-ld_classic' from the linker options! Likewise, but that didn't work for me. It turns out there's an environment variable DEFAULT_LINKER, which with the 15.0 CLT would be set to export DEFAULT_LINKER=/Library/Developer/CommandLineTools/usr/bin/ld-classic (the Xcode equivalent is much longer & more inscrutable) I haven't tried this.