mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
Fix iOS build, and a pair of bugs
This commit is contained in:
parent
e973deadca
commit
fdbde81e78
@ -320,7 +320,7 @@ int main(int argc, char **argv, char **envp) {
|
||||
#if DEBUGGER
|
||||
case 'd': debug = 1; break;
|
||||
#else
|
||||
case 'd': eprintf ("Sorry. No compiler backend available.\n"); return 1;
|
||||
case 'd': eprintf ("Sorry. No debugger backend available.\n"); return 1;
|
||||
#endif
|
||||
case 'D':
|
||||
debug = 2;
|
||||
|
@ -16,7 +16,7 @@ R_API long double r_reg_get_double(RReg *reg, RRegItem *item) {
|
||||
switch (item->size) {
|
||||
case 80:
|
||||
if (regset->arena->size-off-1>=0) {
|
||||
memcpy (&vld, regset->arena->bytes+off, 10);
|
||||
memcpy (&vld, regset->arena->bytes+off, sizeof (long double));
|
||||
ret = vld;
|
||||
}
|
||||
break;
|
||||
|
@ -26,7 +26,7 @@ export IOSVER=8.3
|
||||
export IOSINC=$(pwd)/sys/ios-include
|
||||
export CFLAGS=-O2
|
||||
|
||||
if false ; then
|
||||
if true ; then
|
||||
make clean
|
||||
./configure --prefix=${PREFIX} --with-ostype=darwin \
|
||||
--with-compiler=ios-sdk --target=arm-unknown-darwin
|
||||
@ -35,7 +35,7 @@ else
|
||||
fi
|
||||
|
||||
if [ $? = 0 ]; then
|
||||
time true # make -j4
|
||||
time make -j4
|
||||
if [ $? = 0 ]; then
|
||||
( cd binr/radare2 ; make ios_sdk_sign )
|
||||
rm -rf /tmp/r2ios
|
||||
|
@ -27,12 +27,14 @@ export IOSINC=$(pwd)/sys/ios-include
|
||||
export CFLAGS=-O2
|
||||
export USE_SIMULATOR=0
|
||||
|
||||
|
||||
if true ; then
|
||||
make clean
|
||||
cp -f plugins.tiny.cfg plugins.cfg
|
||||
./configure --prefix=${PREFIX} --with-ostype=darwin \
|
||||
--without-fork --without-pic --with-nonpic \
|
||||
--disable-debugger --with-compiler=ios-sdk \
|
||||
--without-debugger --without-fork \
|
||||
--without-pic --with-nonpic \
|
||||
--with-compiler=ios-sdk \
|
||||
--target=arm-unknown-darwin
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user