From d0fe334c8552edb764b853854037697c6710fa64 Mon Sep 17 00:00:00 2001 From: Lukas Oberhuber Date: Fri, 8 Nov 2024 00:08:33 +0000 Subject: [PATCH] cmake: Fix #4038 MacOS target older OS and SDK versions This fix ensures that when `MACOSX_DEPLOYMENT_TARGET` and `SDKROOT` are set, they are respected when building the libraries and executables. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 95d45afb46d..e80505b7f36 100644 --- a/Makefile +++ b/Makefile @@ -200,9 +200,9 @@ travis-install: .PHONY: clangbuild-darwin-fat clangbuild-darwin-fat: clean clang -v - CXX=clang++ CC=clang CFLAGS="-Werror -Wconversion -Wno-sign-conversion -Wdocumentation -arch arm64" $(MAKE) zstd-release + CXX=clang++ CC=clang CFLAGS+="-Werror -Wconversion -Wno-sign-conversion -Wdocumentation -arch arm64" $(MAKE) zstd-release mv programs/zstd programs/zstd_arm64 - CXX=clang++ CC=clang CFLAGS="-Werror -Wconversion -Wno-sign-conversion -Wdocumentation -arch x86_64" $(MAKE) zstd-release + CXX=clang++ CC=clang CFLAGS+="-Werror -Wconversion -Wno-sign-conversion -Wdocumentation -arch x86_64" $(MAKE) zstd-release mv programs/zstd programs/zstd_x64 lipo -create programs/zstd_x64 programs/zstd_arm64 -output programs/zstd