From 6331b965dd9ef84d23a207661522fe3e712337a1 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Sun, 19 Jan 2020 19:10:41 +0100 Subject: [PATCH] #371 specify minimum target version 10.13 --- makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index b6743c9f..73053027 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,6 @@ FRAMEWORK_PATH = -F/System/Library/PrivateFrameworks FRAMEWORK = -framework Carbon -framework Cocoa -framework CoreServices -framework SkyLight -framework ScriptingBridge -framework IOKit -BUILD_FLAGS = -std=c99 -Wall -g -O0 -fvisibility=hidden +BUILD_FLAGS = -std=c99 -Wall -g -O0 -fvisibility=hidden -mmacosx-version-min=10.13 BUILD_PATH = ./bin DOC_PATH = ./doc SCRIPT_PATH = ./scripts @@ -15,12 +15,12 @@ BINS = $(BUILD_PATH)/yabai all: clean $(BINS) -install: BUILD_FLAGS=-std=c99 -Wall -O2 -fvisibility=hidden +install: BUILD_FLAGS=-std=c99 -Wall -O2 -fvisibility=hidden -mmacosx-version-min=10.13 install: clean $(BINS) sa: - clang $(OSAX_PATH)/loader.m -shared -O2 -o $(OSAX_PATH)/loader -framework Cocoa - clang $(OSAX_PATH)/payload.m -DOBJC_OLD_DISPATCH_PROTOTYPES=1 -shared -fPIC -O2 -o $(OSAX_PATH)/payload -framework Cocoa -framework Carbon + clang $(OSAX_PATH)/loader.m -shared -O2 -mmacosx-version-min=10.13 -o $(OSAX_PATH)/loader -framework Cocoa + clang $(OSAX_PATH)/payload.m -DOBJC_OLD_DISPATCH_PROTOTYPES=1 -shared -fPIC -O2 -mmacosx-version-min=10.13 -o $(OSAX_PATH)/payload -framework Cocoa -framework Carbon xxd -i -a $(OSAX_PATH)/loader $(OSAX_PATH)/sa_loader.c xxd -i -a $(OSAX_PATH)/payload $(OSAX_PATH)/sa_payload.c rm -f $(OSAX_PATH)/loader