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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.99.106.130 with SMTP id f124mr6388086pgc.140.1490541036054; Sun, 26 Mar 2017 08:10:36 -0700 (PDT) X-Received: by 10.157.11.150 with SMTP id 22mr238930oth.18.1490541035998; Sun, 26 Mar 2017 08:10:35 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!w124no6329996itb.0!news-out.google.com!m191ni10728itc.0!nntp.google.com!w124no2115823itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 26 Mar 2017 08:10:35 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1205:c68c:9d90:2d32:747e:181b:3ea2; posting-account=Pm0FhgoAAAAiPscNT3etSZ15tHNZGXm_ NNTP-Posting-Host: 2a02:1205:c68c:9d90:2d32:747e:181b:3ea2 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Gprbuild - Setting the earliest version of MacOS X that an executable will run on. From: ahlan.marriott@gmail.com Injection-Date: Sun, 26 Mar 2017 15:10:36 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:46462 Date: 2017-03-26T08:10:35-07:00 List-Id: My OSX application built using GNAT GPL 2015 runs just fine if started from= finder or from a terminal but not when part of a bundle. When started from= a bundle, irrespective of the setting of LSMinimumSystemVersion in Info.pl= ist, Sierra complains "You have macOS 10.12.3. The application requires mac= OS 10.12.4 or later" Googling (as one does) I found http://stackoverflow.com/a/25362535 that sug= gests that you should call the GCC with the switch --macosx-version-min to = explicitly set the minimum version within the executable. If not explicitly defined, the GCC will use the value of the environment va= riable MACOSX_DEPLOYMENT_TARGET. It is unclear what value will be used if neither is set. Has anyone else come across this problem? I assume I could solve the problem by passing the --macosx-version-min swit= ch to GCC - if I knew how. Can anyone tell me how I should alter my GprBuild .gpr file to do this? Would this be a Builder switch or a Linker switch or a Compiler switch that= is passed to the linker? Best wishes, Ahlan