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 22:00:29 +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="4056662"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kVuEVx7S+3zDPUvP6ZoYMyrRE20vf4aY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cancel-Lock: sha1:5547qu8CSgRmMimbYTKgheaKrLM= sha1:OXH+pqFN8wr34F1FvBSeP47fVWE= Xref: news.eternal-september.org comp.lang.ada:65746 List-Id: Simon Wright writes: > 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. You can't reinstall the 14.3 CLT under Sonoma (it's "too old"). I reinstalled from a Time Machine backup, but if you don't have that set up I'd recommend taking a copy of /Library/Developer/CommandLineTools before updating to 15.0. > It turns out there's an environment variable DEFAULT_LINKER, which with [...] > I haven't tried this. This affects building the compiler, not using it.