13
0

Fix min OSX deplyoment target

mmacosx-version-min also needs to be set during linking, otherwise
the Finder will not allow to launch the application on older systems
  "The application requires os X 10.XX or later"
(with XX being the build-host's OS version), even though
Ardour can be started from a terminal on target due to correct
c/cxxflags.
This commit is contained in:
Robin Gareus 2020-12-02 01:04:25 +01:00
parent ee1434f47d
commit 9cb9e58b31
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -617,21 +617,25 @@ int main() { return 0; }''',
compiler_flags.extend(
("-DMAC_OS_X_VERSION_MIN_REQUIRED=1060",
'-mmacosx-version-min=10.6'))
linker_flags.append("-mmacosx-version-min=10.6")
elif conf.env['build_target'] in [ 'lion', 'mountainlion' ]:
compiler_flags.extend(
("-DMAC_OS_X_VERSION_MIN_REQUIRED=1070",
'-mmacosx-version-min=10.7'))
linker_flags.append("-mmacosx-version-min=10.7")
elif conf.env['build_target'] in [ 'mavericks', 'yosemite' ]:
compiler_flags.extend(
("-DMAC_OS_X_VERSION_MAX_ALLOWED=1090",
"-mmacosx-version-min=10.8"))
linker_flags.append("-mmacosx-version-min=10.8")
elif conf.env['build_target'] in ['el_capitan', 'sierra', 'high_sierra', 'mojave', 'catalina' ]:
compiler_flags.extend(
("-DMAC_OS_X_VERSION_MAX_ALLOWED=1090",
"-mmacosx-version-min=10.9"))
linker_flags.append("-mmacosx-version-min=10.9")
#
# save off CPU element in an env