-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Reportedly, option -mmacosx-version-min can't be defined lower than 10.9 when building C++ code with Xcode 10. I don't want to set -mmacosx-version-min=10.9 for all Pd libs and regardless of Xcode version. On the other hand I don't know right away how to define it conditionally, which would require two extra checks:
- is there any C++ code involved in the build?
- what Xcode version is being used?
Even if these conditions can be checked, the total set of conditional checks for minimum OSX version will become rather kludgy. So I'm hoping that someone comes up with a better idea. In the meantime you may need to override the minimum OSX version as defined in the makefile. This can be done on command line like so:
$ make version.flag="-mmacosx-version-min=10.9"
(edit: version.flag is not considered an 'API' variable, use only as temporary workaround)
If your library needs a specific minimum version anyway, it can be defined in the lib Makefile:
define forDarwin
cflags = -mmacosx-version-min=10.9
endef