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-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE 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: M1 MAC - libraries Date: Mon, 31 Jul 2023 08:58:59 +0100 Organization: A noiseless patient Spider Message-ID: References: <23b32951-0629-4227-bc10-fdf10d3cd7e4n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="c301f83f0cae6bcc5c7df4a6043e1a51"; logging-data="3398297"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dGwMZ4z9r2ShCNrMWL4XS9lRnmKXeTXs=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cancel-Lock: sha1:+6L27rrUcPw1DC3U5yiML9bGQIY= sha1:Qn1uMLaGzCsglm0Rr2R7wDRHdq8= Xref: news.eternal-september.org comp.lang.ada:65469 List-Id: "Rajagopalan Srinivasan 192/73" writes: > What is the way to specify platform dependent Linker options on a Mac? > > for linux I use something like the following in my gpr file: > > case os is > > when "GNU/Linux" => > > not sure what is equivalent for the M1 Mac? What is "os" in the above? If it's the environment variable OS then, indeed, there's no equivalent on macOS (either kind of silicon). I don't know whether Windows defines "OS", but if it does you could just set Darwin (or whatever) as the default? OS := external ("OS", "Darwin"); If you're using Alire, the generated config/{crate}_config.gpr contains on macOS Alire_Host_OS := "macos";