From 1393b2f681df3a71cb381b958e8e3221d2dd427d Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sat, 24 Oct 2015 19:20:33 +0200 Subject: [PATCH] Update build instructions. --- doc/install.html | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/doc/install.html b/doc/install.html index 7a878b1c..5dc1289e 100644 --- a/doc/install.html +++ b/doc/install.html @@ -112,23 +112,23 @@ operating systems, CPUs and compilers: x86 (32 bit) -GCC 4.x
GCC 3.4 -GCC 4.x
GCC 3.4 -GCC 4.x
GCC 3.4 +GCC 4.x+
GCC 3.4 +GCC 4.x+
GCC 3.4 +XCode 5.0+
Clang MSVC, MSVC/EE
WinSDK
MinGW, Cygwin x64 (64 bit) -GCC 4.x +GCC 4.x+ ORBIS (PS4) -GCC 4.x +XCode 5.0+
Clang MSVC + SDK v7.0
WinSDK v7.0 ARMv5+
ARM9E+
GCC 4.2+ GCC 4.2+
PSP2 (PS VITA) -GCC 4.2+ +XCode 5.0+
Clang   @@ -439,8 +439,7 @@ NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-x86" make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF"

-You can cross-compile for iOS 3.0+ (iPhone/iPad) using the » iOS SDK. -The environment variables need to match the iOS SDK version: +You can cross-compile for iOS 3.0+ (iPhone/iPad) using the » iOS SDK:

Note: the JIT compiler is disabled for iOS, because regular iOS Apps @@ -450,13 +449,11 @@ much slower than the JIT compiler. Please complain to Apple, not me. Or use Android. :-p

-IXCODE=`xcode-select -print-path`
-ISDK=$IXCODE/Platforms/iPhoneOS.platform/Developer
-ISDKVER=iPhoneOS6.0.sdk
-ISDKP=$ISDK/usr/bin/
-ISDKF="-arch armv7 -isysroot $ISDK/SDKs/$ISDKVER"
-make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \
-     TARGET_SYS=iOS
+ISDKP=$(xcrun --sdk iphoneos --show-sdk-path)
+ICC=$(xcrun --sdk iphoneos --find clang)
+ISDKF="-arch armv7 -isysroot $ISDKP"
+make HOST_CC="clang -m32 -arch i386" CROSS="$(dirname $ICC)/" \
+     TARGET_FLAGS="$ISDKF" TARGET_SYS=iOS
 

Cross-compiling for consoles

-- 2.11.4.GIT