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:
parent
ee1434f47d
commit
9cb9e58b31
4
wscript
4
wscript
@ -617,21 +617,25 @@ int main() { return 0; }''',
|
|||||||
compiler_flags.extend(
|
compiler_flags.extend(
|
||||||
("-DMAC_OS_X_VERSION_MIN_REQUIRED=1060",
|
("-DMAC_OS_X_VERSION_MIN_REQUIRED=1060",
|
||||||
'-mmacosx-version-min=10.6'))
|
'-mmacosx-version-min=10.6'))
|
||||||
|
linker_flags.append("-mmacosx-version-min=10.6")
|
||||||
|
|
||||||
elif conf.env['build_target'] in [ 'lion', 'mountainlion' ]:
|
elif conf.env['build_target'] in [ 'lion', 'mountainlion' ]:
|
||||||
compiler_flags.extend(
|
compiler_flags.extend(
|
||||||
("-DMAC_OS_X_VERSION_MIN_REQUIRED=1070",
|
("-DMAC_OS_X_VERSION_MIN_REQUIRED=1070",
|
||||||
'-mmacosx-version-min=10.7'))
|
'-mmacosx-version-min=10.7'))
|
||||||
|
linker_flags.append("-mmacosx-version-min=10.7")
|
||||||
|
|
||||||
elif conf.env['build_target'] in [ 'mavericks', 'yosemite' ]:
|
elif conf.env['build_target'] in [ 'mavericks', 'yosemite' ]:
|
||||||
compiler_flags.extend(
|
compiler_flags.extend(
|
||||||
("-DMAC_OS_X_VERSION_MAX_ALLOWED=1090",
|
("-DMAC_OS_X_VERSION_MAX_ALLOWED=1090",
|
||||||
"-mmacosx-version-min=10.8"))
|
"-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' ]:
|
elif conf.env['build_target'] in ['el_capitan', 'sierra', 'high_sierra', 'mojave', 'catalina' ]:
|
||||||
compiler_flags.extend(
|
compiler_flags.extend(
|
||||||
("-DMAC_OS_X_VERSION_MAX_ALLOWED=1090",
|
("-DMAC_OS_X_VERSION_MAX_ALLOWED=1090",
|
||||||
"-mmacosx-version-min=10.9"))
|
"-mmacosx-version-min=10.9"))
|
||||||
|
linker_flags.append("-mmacosx-version-min=10.9")
|
||||||
|
|
||||||
#
|
#
|
||||||
# save off CPU element in an env
|
# save off CPU element in an env
|
||||||
|
Loading…
Reference in New Issue
Block a user