radare2: Patches to build on all arches
authorFredrik Fornwall <fredrik@fornwall.net>
Fri, 16 Sep 2016 22:19:27 +0000 (18:19 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Fri, 16 Sep 2016 22:19:27 +0000 (18:19 -0400)
packages/radare2/debug_native.c.patch [new file with mode: 0644]
packages/radare2/linux_debug.c.patch [new file with mode: 0644]
packages/radare2/mk-termux-host.mk.patch [new file with mode: 0644]

diff --git a/packages/radare2/debug_native.c.patch b/packages/radare2/debug_native.c.patch
new file mode 100644 (file)
index 0000000..daaa8cd
--- /dev/null
@@ -0,0 +1,12 @@
+diff -u -r ../radare2-0.10.5/libr/debug/p/debug_native.c ./libr/debug/p/debug_native.c
+--- ../radare2-0.10.5/libr/debug/p/debug_native.c      2016-08-16 19:28:34.000000000 -0400
++++ ./libr/debug/p/debug_native.c      2016-09-16 17:37:57.879695115 -0400
+@@ -75,7 +75,7 @@
+ #   define WIFCONTINUED(s) ((s) == 0xffff)
+ #  endif
+ # endif
+-#if __x86_64__
++#if __x86_64__ && !defined(__ANDROID__)
+ #include "native/linux/linux_coredump.h"
+ #endif
+ #else // OS
diff --git a/packages/radare2/linux_debug.c.patch b/packages/radare2/linux_debug.c.patch
new file mode 100644 (file)
index 0000000..ae4da5d
--- /dev/null
@@ -0,0 +1,12 @@
+diff -u -r ../radare2-0.10.5/libr/debug/p/native/linux/linux_debug.c ./libr/debug/p/native/linux/linux_debug.c
+--- ../radare2-0.10.5/libr/debug/p/native/linux/linux_debug.c  2016-08-16 19:28:34.000000000 -0400
++++ ./libr/debug/p/native/linux/linux_debug.c  2016-09-16 17:53:45.280118204 -0400
+@@ -426,7 +426,7 @@
+                       if (ret1 != 0) return false;
+                       if (sizeof(fpregs) < size) size = sizeof(fpregs);
+                       memcpy (buf, &fpregs, size);
+-                      return sizeof(fpregs)
++                      return sizeof(fpregs);
+ #endif // !__ANDROID__
+ #elif __i386__
+ #if !__ANDROID__
diff --git a/packages/radare2/mk-termux-host.mk.patch b/packages/radare2/mk-termux-host.mk.patch
new file mode 100644 (file)
index 0000000..a3d835c
--- /dev/null
@@ -0,0 +1,14 @@
+diff -u -r ../radare2-0.10.5/mk/termux-host.mk ./mk/termux-host.mk
+--- ../radare2-0.10.5/mk/termux-host.mk        2016-08-16 19:28:34.000000000 -0400
++++ ./mk/termux-host.mk        2016-09-16 16:58:13.067871972 -0400
+@@ -2,10 +2,7 @@
+ #CC=gcc -fPIC -fPIE
+ #RANLIB=ndk-ranlib
+ USERCC=gcc -fPIC -fPIE
+-ARCH=arm
+-RANLIB=aarch64-linux-android-ranlib
+-AR=aarch64-linux-android-ar
+ CC_AR=${AR} -r ${LIBAR}
+ ONELIB=0