Use selected macOS SDK for example and vector-set modules

This commit is contained in:
Tom Gabsow committed 2026-10-15 17:12:26 +03:00
1 parent 56afae5439
commit c9e1f74604
2 files changed
+12 -2

No files matched your search

+6 -1
View File
@@ -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
+6 -1
View File
@@ -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