mirror of
https://github.com/curl/curl.git
synced 2026-07-24 09:17:59 +03:00
tests: delete libhostname.so and chkhostname
Before this patch, `libhostname.so` and `chkhostname` were a test facility for overriding `gethostname()` in non-debug builds on Linux and other Unix platforms supporting `LD_PRELOAD`. `gethostname()` has a single use with SMTP. The alternative way to override `gethostname()` is building in debug mode, which allows to do this via the `CURL_GETHOSTNAME` env, on all platforms. Drop the `LD_PRELOAD` solution in favour of the above. Also: - delete inactive NTLM code with a `gethostname()` call made from it. - streamline NTLM code by dropping a `printf()` and a macro. - tests: stop setting `CURL_GETHOSTNAME` where unnecessary. Closes #14695
This commit is contained in:
parent
59b419f1a5
commit
09437d8cd4
23 changed files with 5 additions and 307 deletions
|
|
@ -139,13 +139,6 @@ build_all_programs()
|
|||
cd libtest || exit 1
|
||||
get_make_vars Makefile.inc
|
||||
|
||||
# Special case: redefine chkhostname compilation parameters.
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
chkhostname_SOURCES=chkhostname.c
|
||||
# shellcheck disable=SC2034
|
||||
chkhostname_LDADD=curl_gethostname.o
|
||||
|
||||
# shellcheck disable=SC2153
|
||||
build_all_programs "" "${TARGETLIB}/${SRVPGM}"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue