aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/zabbix/zabbix/0001-Fix-configure.ac.patch
blob: af14a1a56cc2aa7622aeff48b1da2895d07cfba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
uname can not get version of kernel correctly while cross compile

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 523899b..4e6ae0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -924,7 +924,7 @@ AC_MSG_RESULT([$ARCH ($host_os)])
 if test "x$ARCH" = "xlinux"; then
 	AC_MSG_CHECKING([for the linux kernel version])
 
-	kernel=`uname -r`
+	kernel="${KERNEL_VERSION}"
 
 	case "${kernel}" in
 		2.6.*)
-- 
1.8.3.1