From 0ac75f038e3991d3e2f2fa773aad3b32413d09cf Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Mon, 17 Mar 2014 14:39:12 +0100
Subject: fix Darwin cross-build

---
 package/valgrind/Makefile                   |  2 +-
 package/valgrind/patches/patch-configure_ac | 11 ++++++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

(limited to 'package/valgrind')

diff --git a/package/valgrind/Makefile b/package/valgrind/Makefile
index 025db9dac..9c78dc20c 100644
--- a/package/valgrind/Makefile
+++ b/package/valgrind/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=		valgrind
 PKG_VERSION:=		3.9.0
-PKG_RELEASE:=		1
+PKG_RELEASE:=		2
 PKG_MD5SUM:=		0947de8112f946b9ce64764af7be6df2
 PKG_DESCR:=		memory management debugging
 PKG_SECTION:=		debug
diff --git a/package/valgrind/patches/patch-configure_ac b/package/valgrind/patches/patch-configure_ac
index 844275cca..cc7286c90 100644
--- a/package/valgrind/patches/patch-configure_ac
+++ b/package/valgrind/patches/patch-configure_ac
@@ -1,5 +1,5 @@
 --- valgrind-3.9.0.orig/configure.ac	2013-11-01 00:28:16.000000000 +0100
-+++ valgrind-3.9.0/configure.ac	2013-11-07 17:26:16.000000000 +0100
++++ valgrind-3.9.0/configure.ac	2014-03-17 14:18:45.000000000 +0100
 @@ -155,6 +155,7 @@ esac
  # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
  # variables used when compiling C files.
@@ -36,6 +36,15 @@
  #----------------------------------------------------------------------------
  
  # Sometimes it's convenient to subvert the bi-arch build system and
+@@ -273,7 +286,7 @@ case "${host_os}" in
+         # Ok, this is linux. Check the kernel version
+         AC_MSG_CHECKING([for the kernel version])
+ 
+-        kernel=`uname -r`
++        kernel=3.13
+ 
+         case "${kernel}" in
+              2.6.*|3.*) 
 @@ -792,6 +805,15 @@ AC_EGREP_CPP([BIONIC_LIBC], [
  ],
  GLIBC_VERSION="bionic")
-- 
cgit v1.2.3