Skip to content

Commit

Permalink
curl.sh: drop adding iphlpapi for libssh locally [ci skip]
Browse files Browse the repository at this point in the history
It's being upstreamed to be added by CMake automatically:
curl/curl#14618
  • Loading branch information
vszakats committed Aug 21, 2024
1 parent ea5fccb commit 09df50b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions curl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,16 +260,16 @@ _VER="$1"
CPPFLAGS+=" -I${_TOP}/libssh/${_PPS}/include"
LDFLAGS+=" -L${_TOP}/libssh/${_PPS}/lib"
LIBS+=' -lssh'
if [ "${_OS}" = 'win' ]; then
LIBS+=' -liphlpapi' # for if_nametoindex
fi
else
options+=' -DCURL_USE_LIBSSH=ON'
options+=' -DCURL_USE_LIBSSH2=OFF'
options+=" -DLIBSSH_INCLUDE_DIR=${_TOP}/libssh/${_PPS}/include"
options+=" -DLIBSSH_LIBRARY=${_TOP}/libssh/${_PPS}/lib/libssh.a"
fi
CPPFLAGS+=' -DLIBSSH_STATIC'
if [ "${_OS}" = 'win' ]; then
LIBS+=' -liphlpapi' # for if_nametoindex
fi
elif [[ "${_DEPS}" = *'libssh2'* ]] && [ -d "../libssh2/${_PPS}" ]; then
options+=' -DCURL_USE_LIBSSH2=ON'
options+=' -DCURL_USE_LIBSSH=OFF'
Expand Down

0 comments on commit 09df50b

Please sign in to comment.