summaryrefslogtreecommitdiff
path: root/package/devel/valgrind/patches/100-fix_configure_check.patch
blob: 87ef3b39fc55c44c021eef0926d8309800f1013b (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/configure.ac
+++ b/configure.ac
@@ -300,7 +300,7 @@ case "${host_os}" in
         # Ok, this is linux. Check the kernel version
         AC_MSG_CHECKING([for the kernel version])
 
-        kernel=`uname -r`
+        kernel=${UNAME_R:-`uname -r`}
 
         case "${kernel}" in
              2.6.*|3.*)