Update for iOS 8.1 SDK

This commit is contained in:
pancake 2014-11-06 11:57:19 +01:00
parent 6ef9165f39
commit 619e443e7e
4 changed files with 19 additions and 11 deletions

View File

@ -5,7 +5,8 @@ endif
# OSX 10.7 (lion)
ifeq (${OSTYPE},darwin)
LDFLAGS+=-lcrypto
#LDFLAGS+=-lcrypto
# IOS doesnt allows to link against libcrypto
endif
# on solaris only
ifeq (${OSTYPE},solaris)

View File

@ -10,7 +10,9 @@
#if __APPLE__
#include <errno.h>
#include <execinfo.h>
#include <crt_externs.h>
// iOS dont have this we cant hardcode
// #include <crt_externs.h>
extern char ***_NSGetEnviron(void);
# ifndef PROC_PIDPATHINFO_MAXSIZE
# define PROC_PIDPATHINFO_MAXSIZE 1024
int proc_pidpath(int pid, void * buffer, ut32 buffersize);

View File

@ -1,12 +1,13 @@
#!/bin/sh
export PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:$PATH
CWD=`dirname $0`
if [ -z "${CPU}" ]; then
CPU=armv7
#CPU=arm64
fi
if [ -z "${IOSVER}" ]; then
IOSVER=7.1
IOSVER=8.1
fi
DEVROOT=/Applications/Xcode.app/Contents/Developer
@ -20,20 +21,24 @@ export PATH=${DEVROOT}/usr/bin:${SDKROOT}/Developer/usr/bin:${PATH}
CC=${DEVROOT}/usr/bin/gcc
LD=${CC}
CFLAGS="${CFLAGS} -arch ${CPU}"
if [ -z "${IOSINC}" ]; then
IOSINC=${CWD}/ios-include
IOSINC=/Users/pancake/prg/radare2/sys/ios-include
fi
if [ -n "${IOSINC}" ]; then
CFLAGS="${CFLAGS} -I${IOSINC}"
CFLAGS="${CFLAGS} -I${IOSINC}"
fi
CFLAGS="${CFLAGS} -I${IOSROOT}/usr/include"
CFLAGS="${CFLAGS} -I${IOSROOT}/usr/include"
#CFLAGS="${CFLAGS} -I${IOSROOT}/usr/include"
LDFLAGS="-L ${IOSROOT}/usr/lib/system ${LDFLAGS}"
LDFLAGS="-L ${IOSROOT}//usr/lib/ ${LDFLAGS}"
# Workaround
if [ ! -e ${IOSROOT}/usr/lib/system/libcrypto.dylib ]; then
sudo cp \
${IOSROOT}/usr/lib/system/libcorecrypto.dylib \
${IOSROOT}/usr/lib/system/libcrypto.dylib
fi
#if [ ! -e ${IOSROOT}/usr/lib/system/libcrypto.dylib ]; then
#sudo cp \
# ${IOSROOT}/usr/lib/system/libcorecrypto.dylib \
# ${IOSROOT}/usr/lib/system/libcrypto.dylib
#fi
# arm64
${CC} ${CFLAGS} ${LDFLAGS} $@

View File

@ -22,7 +22,7 @@ export PATH=`pwd`/sys:${PATH}
export CC=`pwd`/sys/ios-sdk-gcc
# set only for arm64, otherwise it is armv7
# select ios sdk version
export IOSVER=7.1
export IOSVER=8.1
export IOSINC=`pwd`/sys/ios-include
export CFLAGS=-O2