Files
packages/net/unbound/patches/010-configure-uname.patch
Eric Luehrsen 7b63002273 unbound: update to 1.24.0
latest upstream 09182024

Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
2025-09-29 05:43:10 -03:00

15 lines
438 B
Diff

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
@@ -902,7 +902,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