mirror of
https://github.com/curl/curl.git
synced 2026-07-30 14:58:28 +03:00
configure: only check in the watt library if WATT_ROOT is set
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
This commit is contained in:
parent
8734b08883
commit
090056522b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue