From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Gprbuild - Setting the earliest version of MacOS X that an executable will run on. Date: Sun, 26 Mar 2017 19:01:37 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="d1e5eae10b2a8168fcc4a073b79e0a7f"; logging-data="13733"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JOIjuPfIQdAbdCFyT8FO2AhkqDkV6VB0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:vBjYhF++LiQ73p8TgT40yY4aTfo= sha1:HFPAJ7FPj21E91C5AT7x+dNTbjM= Xref: news.eternal-september.org comp.lang.ada:46464 Date: 2017-03-26T19:01:37+01:00 List-Id: Looking at a .ali file compiled with GCC 6.1.0 on macOS Sierra 10.12.3, I see in the list of switches near the beginning A -mmacosx-version-min=10.12.4 You can also see it by compiling with -v (gprbuild -cargs -v). Also with GCC 5.2.0. Also with GNAT GPL 2016. Also with a C source file. Also with GCC 7.0.1 20170302. Also while linking (a C source) - but then the flag is just -macosx_version_min 10.12.4 I guess you'd include the right version in your GPR Compiler package (a quick check using "-cargs -v -mmacosx-version-min=10.12.3" indicates it should work). If you use apple's gcc to build a C executable, it uses -macosx_version_min 10.12.0 but only at the link stage; so perhaps you could get away with introducing the switch in your GPR Linker package. Or maybe both. Looks like a GCC bug to me; nothing in Bugzilla. On the other hand, if I try on El Capitan (GNAT GPL 2016 only) *I get the right value*!!!!! (10.11.6, actually).