From 7ba0b0403146f1ee7b78268869e911aade5492ff Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 26 Sep 2017 11:43:03 +0200 Subject: [PATCH] Set mmacosx-version-min to 10.9 for OCCT See https://github.com/openMVG/openMVG/issues/316#issuecomment-332142824 --- nix/build-all.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/build-all.py b/nix/build-all.py index ec600358ce..9e340b2388 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -378,7 +378,9 @@ if TARGET_ARCH == "i686" and __check_output__([uname, "-m"]).strip() == "x86_64" BOOST_ADDRESS_MODEL=["architecture=x86", "address-model=32"] if get_os() == "Darwin": - ADDITIONAL_ARGS=["-mmacosx-version-min=10.6"]+ADDITIONAL_ARGS + # C++11 features used in OCCT 7+ need a more recent stdlib + version_min = "10.9" if USE_OCCT else "10.6" + ADDITIONAL_ARGS=["-mmacosx-version-min=" % version_min]+ADDITIONAL_ARGS # If the linker supports GC sections, set it up to reduce binary file size # -fPIC is required for the shared libraries to work