mirror of
https://github.com/redis/redis.git
synced 2026-10-28 16:35:46 +08:00
Use selected macOS SDK for example and vector-set modules
This commit is contained in:
1 parent
56afae5439
commit
c9e1f74604
2 files changed
+12
-2
No files matched your search
@@ -42,7 +42,12 @@ endif
|
||||
# OS X 11.x doesn't have /usr/lib/libSystem.dylib and needs an explicit setting.
|
||||
ifeq ($(uname_S),Darwin)
|
||||
ifeq ("$(wildcard /usr/lib/libSystem.dylib)","")
|
||||
LIBS = -L /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lsystem
|
||||
# Use the selected SDK; the CLT SDK may require a newer linker than Xcode.
|
||||
MACOS_SDK := $(shell xcrun --show-sdk-path 2>/dev/null)
|
||||
ifeq ($(MACOS_SDK),)
|
||||
$(error Could not resolve macOS SDK path)
|
||||
endif
|
||||
LIBS = -L "$(MACOS_SDK)/usr/lib" -lsystem
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
@@ -14,7 +14,12 @@ endif
|
||||
# OS X 11.x doesn't have /usr/lib/libSystem.dylib and needs an explicit setting.
|
||||
ifeq ($(uname_S),Darwin)
|
||||
ifeq ("$(wildcard /usr/lib/libSystem.dylib)","")
|
||||
LIBS = -L /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lsystem
|
||||
# Use the selected SDK; the CLT SDK may require a newer linker than Xcode.
|
||||
MACOS_SDK := $(shell xcrun --show-sdk-path 2>/dev/null)
|
||||
ifeq ($(MACOS_SDK),)
|
||||
$(error Could not resolve macOS SDK path)
|
||||
endif
|
||||
LIBS = -L "$(MACOS_SDK)/usr/lib" -lsystem
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user