diff mbox

[06/18] Busybox: (Better) Darwin support

Message ID 1407352684-7837-6-git-send-email-diorcet.yann@gmail.com
State Rejected
Delegated to: Kim
Headers show

Commit Message

Yann Diorcet Aug. 6, 2014, 7:17 p.m. UTC
---
 recipes/busybox/busybox-1.19.4/osx.patch | 12 ++++++++++++
 recipes/busybox/busybox.inc              |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 recipes/busybox/busybox-1.19.4/osx.patch
diff mbox

Patch

diff --git a/recipes/busybox/busybox-1.19.4/osx.patch b/recipes/busybox/busybox-1.19.4/osx.patch
new file mode 100644
index 0000000..67bc401
--- /dev/null
+++ b/recipes/busybox/busybox-1.19.4/osx.patch
@@ -0,0 +1,12 @@ 
+diff -urN busybox-1.19.4/scripts/kconfig/mconf.c busybox-1.19.4-2/scripts/kconfig/mconf.c
+--- busybox-1.19.4/scripts/kconfig/mconf.c	2012-02-04 20:24:55.000000000 +0100
++++ busybox-1.19.4-2/scripts/kconfig/mconf.c	2012-10-04 09:38:35.000000000 +0200
+@@ -9,6 +9,8 @@
+  */
+ 
+ #define _XOPEN_SOURCE 700
++/* On Darwin, this may be needed to get SIGWINCH: */
++#define _DARWIN_C_SOURCE 1
+ 
+ #include <sys/ioctl.h>
+ #include <sys/wait.h>
diff --git a/recipes/busybox/busybox.inc b/recipes/busybox/busybox.inc
index fd12b00..1a47dc5 100644
--- a/recipes/busybox/busybox.inc
+++ b/recipes/busybox/busybox.inc
@@ -55,7 +55,7 @@  export EXTRA_LDFLAGS = "${LDFLAGS}"
 
 require busybox-configure.inc
 
-EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}"
+EXTRA_OEMAKE += "ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}"
 EXTRA_OEMAKE += "CROSS=${HOST_PREFIX}"
 
 do_compile() {