Skip to content

Commit 91bb644

Browse files
authored
Merge pull request #287 from Faless/build/fix_macos_deployment_target
Force macOS deployment target for OpenSSL when specified
2 parents 1e346f8 + 9a43d56 commit 91bb644

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/openssl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def ssl_platform_flags(env):
8080
api = int(env["android_api_level"])
8181
args.append("-D__ANDROID_API__=%s" % api)
8282
elif env["platform"] == "macos":
83+
if env["macos_deployment_target"] != "default":
84+
args.append("-mmacosx-version-min=%s" % env["macos_deployment_target"])
8385
# OSXCross toolchain setup.
8486
if sys.platform != "darwin" and "OSXCROSS_ROOT" in os.environ:
8587
for k in ["CC", "CXX", "AR", "AS", "RANLIB"]:

0 commit comments

Comments
 (0)