From 9cb9e58b3192cd1289e3623468c037e7bce19713 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 2 Dec 2020 01:04:25 +0100 Subject: [PATCH] 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. --- wscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wscript b/wscript index 2bec13f76a..8dd622cb14 100644 --- a/wscript +++ b/wscript @@ -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