mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-07 02:23:58 +00:00
Some more fixes for the iOS build in sys/ios-sdk.sh
This commit is contained in:
parent
1e65206273
commit
f33db3e48c
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# You can modify these variables
|
||||
PREFIX="/usr"
|
||||
@ -22,6 +22,9 @@ export IOSVER=9.0
|
||||
export IOSINC=`pwd`/sys/ios-include
|
||||
export USE_IOS_STATIC=0
|
||||
|
||||
echo "If xcrun --sdk iphoneos cant find the profile use this line:"
|
||||
echo " sudo xcode-select -switch /Applications/Xcode.app"
|
||||
|
||||
PLUGINS_CFG=plugins.ios-store.cfg
|
||||
#PLUGINS_CFG=plugins.ios.cfg
|
||||
|
||||
@ -41,7 +44,7 @@ iosConfigure() {
|
||||
|
||||
iosClean() {
|
||||
make clean
|
||||
rm -rf libr/.libr libr/libr.a libr/libr.dylib
|
||||
rm -rf libr/.libr libr/.libr2 libr/libr.a libr/libr.dylib shlr/libr_shlr.a
|
||||
}
|
||||
|
||||
iosBuild() {
|
||||
@ -237,11 +240,12 @@ if [ "${USE_SIMULATOR}" = 1 ]; then
|
||||
fi
|
||||
|
||||
# check if arm archs were selected and if so build radare2 for them
|
||||
# XXX this is a bashism
|
||||
if [ "${#ARCHS}" -gt 0 ]; then
|
||||
iosClean
|
||||
iosConfigure
|
||||
if [ "$?" = 0 ]; then
|
||||
export CPU=$ARCHS
|
||||
export CPU="$ARCHS"
|
||||
export SDK=iphoneos
|
||||
echo "Building for $CPU"
|
||||
sleep 1
|
||||
|
Loading…
Reference in New Issue
Block a user