aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2021-03-07 15:21:42 +0100
committerTeddy Wing2021-03-07 15:21:42 +0100
commit0f38b2e3925b5d8f8e314db8c68ebbeb272423a5 (patch)
tree21f60e2e986c807ed45474ca6ed8757ecfb9bc7e /Makefile
parenta0ec0a479163122ba4facef38b8b527229a1b8ca (diff)
downloadRe-Good-Catalina-Invert-Colours-0f38b2e3925b5d8f8e314db8c68ebbeb272423a5.tar.bz2
Makefile: Fix link error for `UCKeyTranslate`
The linker complained about `_UCKeyTranslate` being undefined. It's used by DDHotKey, and is defined in `CoreServices.framework`, so we need to link CoreServices. Here's the error I was getting: clang -x objective-c \ -mmacosx-version-min=10.7 \ -framework Carbon \ -framework Cocoa \ -framework CoreGraphics \ -framework Foundation \ -fno-objc-arc \ -I./build/include \ -L./build \ -lddhotkey \ -o invert-catalina-invert \ Invert.h Invert.m main.m Undefined symbols for architecture x86_64: "_UCKeyTranslate", referenced from: _DDStringFromKeyCode in libddhotkey.a(DDHotKeyUtilities.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bfceaf8..65a24f3 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ all: $(SOURCES) build/libddhotkey.a build/include/*.h
-framework Carbon \
-framework Cocoa \
-framework CoreGraphics \
+ -framework CoreServices \
-framework Foundation \
-fno-objc-arc \
-I./build/include \