]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: only check in the watt library if WATT_ROOT is set
authorRoss Burton <ross.burton@arm.com>
Thu, 23 Jul 2026 12:09:13 +0000 (13:09 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 23 Jul 2026 20:04:15 +0000 (22:04 +0200)
Only look for gethostbyname in libwatt in $WATT_ROOT/lib if WATT_ROOT
has actually been set. This avoids configure trying to search in /lib,
which won't every succeed and can cause problems in cross builds which
check that host paths are not being searched.

Closes #22380

configure.ac

index 6b87ee6e3e5f3bea21dfa06f8d7f1558104e19c7..2456589b61a1fbfe8e92f0c0436ec1a45c06aafb 100644 (file)
@@ -1277,7 +1277,7 @@ if test "$HAVE_GETHOSTBYNAME" != "1"; then
   )
 fi
 
-if test "$HAVE_GETHOSTBYNAME" != "1"; then
+if test "$HAVE_GETHOSTBYNAME" != "1" && test -n "$WATT_ROOT"; then
   dnl gethostbyname in the watt lib?
   clean_CPPFLAGS=$CPPFLAGS
   clean_LDFLAGS=$LDFLAGS