Browse Source

fix Darwin cross-build

Waldemar Brodkorb 11 years ago
parent
commit
0ac75f038e
2 changed files with 11 additions and 2 deletions
  1. 1 1
      package/valgrind/Makefile
  2. 10 1
      package/valgrind/patches/patch-configure_ac

+ 1 - 1
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

+ 10 - 1
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")