aboutsummaryrefslogtreecommitdiff
path: root/ports.mk
diff options
context:
space:
mode:
authorD G Turner2013-03-10 21:32:42 +0000
committerD G Turner2013-03-10 21:32:42 +0000
commit27abec484967403e083f18cd4f94ec70c22305bf (patch)
treef33536050458fa3b584ee84ef9ae0416e49e25f3 /ports.mk
parentb4d6d443a5f3bec4e5e73ccdf6fbb7f4899d3169 (diff)
downloadscummvm-rg350-27abec484967403e083f18cd4f94ec70c22305bf.tar.gz
scummvm-rg350-27abec484967403e083f18cd4f94ec70c22305bf.tar.bz2
scummvm-rg350-27abec484967403e083f18cd4f94ec70c22305bf.zip
BUILD: Add fix for "Illegal instruction: 4" on iPhone 5 and iPad 4.
This binary patch fix is intended to allow testing in the interim on A6/A6X devices until the OSX porter updates the toolchains to cope with the newer iOS devices.
Diffstat (limited to 'ports.mk')
-rw-r--r--ports.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/ports.mk b/ports.mk
index f6a5a2b31f..7a3bf0fabd 100644
--- a/ports.mk
+++ b/ports.mk
@@ -86,6 +86,12 @@ endif
cp $(srcdir)/dists/iphone/icon.png $(bundle_name)/
cp $(srcdir)/dists/iphone/icon-72.png $(bundle_name)/
cp $(srcdir)/dists/iphone/Default.png $(bundle_name)/
+ # Binary patch workaround for Iphone 5/IPad 4 "Illegal instruction: 4" toolchain issue (http://code.google.com/p/iphone-gcc-full/issues/detail?id=6)
+ cp scummvm scummvm-iph5
+ sed -i'' 's/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' scummvm-iph5
+ ldid -S scummvm-iph5
+ chmod 755 scummvm-iph5
+ cp scummvm-iph5 $(bundle_name)/ScummVM-iph5
# Location of static libs for the iPhone
ifneq ($(BACKEND), iphone)