comp.lang.ada
 help / color / mirror / Atom feed
* Gprbuild - Setting the earliest version of MacOS X that an executable will run on.
@ 2017-03-26 15:10 ahlan.marriott
  2017-03-26 18:01 ` Simon Wright
  0 siblings, 1 reply; 5+ messages in thread
From: ahlan.marriott @ 2017-03-26 15:10 UTC (permalink / raw)


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.plist, Sierra complains "You have macOS 10.12.3. The application requires macOS 10.12.4 or later"

Googling (as one does) I found http://stackoverflow.com/a/25362535 that suggests 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 variable 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 switch 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-27  7:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-26 15:10 Gprbuild - Setting the earliest version of MacOS X that an executable will run on ahlan.marriott
2017-03-26 18:01 ` Simon Wright
2017-03-26 21:03   ` Simon Wright
2017-03-27  6:58     ` ahlan.marriott
2017-03-27  7:26       ` Simon Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox