Browse Source

radare2: Fix i686 build

build-on-device
Fredrik Fornwall 5 years ago
parent
commit
53de8cdd26
  1. 2
      packages/radare2/build.sh
  2. 15
      packages/radare2/libr-debug-p-native-linux-linux_debug.c.patch

2
packages/radare2/build.sh

@ -10,7 +10,7 @@ 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="i686, x86_64"
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
termux_step_pre_configure() {
# Certain packages are not safe to build on device because their

15
packages/radare2/libr-debug-p-native-linux-linux_debug.c.patch

@ -0,0 +1,15 @@
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
@@ -40,7 +40,11 @@
#endif
} else {
#include "reg/linux-x64.h"
+#ifdef __ANDROID__
+#include <sys/ucontext.h>
+#else
#include <bits/sigcontext.h>
+#endif
}
#elif __powerpc__
if (dbg->bits & R_SYS_BITS_32) {
Loading…
Cancel
Save