aboutsummaryrefslogtreecommitdiff
path: root/net/unbound/patches/010-configure-uname.patch
blob: aa1075738d71acedce6d31c458bf29ff3379d475 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
OpenWrt (modification):
Fix cross compile errors by inserting an environment variable for the
target. Use "uname" on host only if "UNAME" variable is empty.
--- a/configure.ac
+++ b/configure.ac
@@ -819,7 +819,7 @@ if test x_$ub_test_python != x_no; then
    fi
 fi
 
-if test "`uname`" = "NetBSD"; then
+if test "${UNAME:-`uname`}" = "NetBSD"; then
 	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
 	AC_SUBST(NETBSD_LINTFLAGS)
 fi