radare2: Fix x86_64 build
This commit is contained in:
parent
8360c13834
commit
f0f7879453
@ -10,7 +10,6 @@ TERMUX_PKG_BREAKS="radare2-dev"
|
||||
TERMUX_PKG_REPLACES="radare2-dev"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-compiler=termux-host"
|
||||
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
|
@ -1,6 +1,6 @@
|
||||
diff -u -r ../radare2-4.1.1/libr/debug/p/native/linux/linux_debug.c ./libr/debug/p/native/linux/linux_debug.c
|
||||
--- ../radare2-4.1.1/libr/debug/p/native/linux/linux_debug.c 2019-12-20 12:22:09.000000000 +0000
|
||||
+++ ./libr/debug/p/native/linux/linux_debug.c 2020-01-01 22:43:18.537610000 +0000
|
||||
+++ ./libr/debug/p/native/linux/linux_debug.c 2020-01-02 20:17:16.589662000 +0000
|
||||
@@ -40,7 +40,11 @@
|
||||
#endif
|
||||
} else {
|
||||
@ -13,3 +13,15 @@ diff -u -r ../radare2-4.1.1/libr/debug/p/native/linux/linux_debug.c ./libr/debug
|
||||
}
|
||||
#elif __powerpc__
|
||||
if (dbg->bits & R_SYS_BITS_32) {
|
||||
@@ -1057,7 +1061,11 @@
|
||||
int ri,rj;
|
||||
for (ri = 0; ri < 16; ri++) {
|
||||
for (rj=0; rj < 4; rj++) {
|
||||
+#ifdef __ANDROID__
|
||||
+ ymm_space[ri*8+rj] = ((struct _libc_fpstate*) &xstate.fpstate)->_xmm[ri].element[rj];
|
||||
+#else
|
||||
ymm_space[ri*8+rj] = xstate.fpstate._xmm[ri].element[rj];
|
||||
+#endif
|
||||
}
|
||||
for (rj=0; rj < 4; rj++) {
|
||||
ymm_space[ri*8+(rj+4)] = xstate.ymmh.ymmh_space[ri*4+rj];
|
||||
|
Loading…
Reference in New Issue
Block a user