summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2021-04-13 10:35:40 -1000
committerSam Bingner <sam@bingner.com>2021-04-13 11:09:16 -1000
commit57955e66916b515fccb920da3e6a4fff4816370d (patch)
treede9b26400921aa079962b9c1693d4cd2c111bf90
parentf39460120a166d4916001005a3348fbc5dff1b61 (diff)
Hacks to make Cydia find WebKit on old iOS versions
- Path was moved so look in two places for WebKit - WebKit now pretends to export functions from WebCore so link WebCore first
-rw-r--r--makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/makefile b/makefile
index 9638031..72539ba 100644
--- a/makefile
+++ b/makefile
@@ -82,7 +82,6 @@ libs += -framework IOKit
libs += -framework QuartzCore
libs += -framework SpringBoardServices
libs += -framework SystemConfiguration
-libs += -framework WebKit
libs += -framework CFNetwork
@@ -92,6 +91,7 @@ libs += -framework WebCore
libs += -Xarch_armv6 -Wl,-force_load,Objects/libapt32.a
lapt += Objects/libapt32.a
endif
+libs += -framework WebKit
libs += -Xarch_$(arch) -Wl,-force_load,Objects/libapt64.a
lapt += Objects/libapt64.a
@@ -289,6 +289,10 @@ MobileCydia: $(object) entitlements.xml $(lapt)
@grep '~' <<<"$(version)" >/dev/null && echo "skipping..." || strip $@
@echo "[uikt] $@"
@./uikit.sh $@
+ @install_name_tool -add_rpath /System/Library/Frameworks $@
+ @install_name_tool -add_rpath /System/Library/PrivateFrameworks $@
+ @install_name_tool -change /System/Library/Frameworks/WebKit.framework/WebKit @rpath/WebKit.framework/WebKit $@
+ @install_name_tool -change /System/Library/PrivateFrameworks/WebKit.framework/WebKit @rpath/WebKit.framework/WebKit $@
cfversion: cfversion.mm
$(cycc) -o $@ $(filter %.mm,$^) $(flag) $(link) -framework CoreFoundation