From a3073824a975339c109ae86b7695408a48802e7b Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Mon, 16 Oct 2023 07:59:21 +0200 Subject: [PATCH] Ports/curl: Set CMake cache variable HAVE_GETADDRINFO_THREADSAFE to 1 According to the issue https://github.com/curl/curl/issues/12093 the curl build doesn't properly detect that Serenity has getaddrinfo() and outputs the following: --- Performing Test HAVE_H_ERRNO_ASSIGNABLE CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately: HAVE_H_ERRNO_ASSIGNABLE_EXITCODE (advanced) --- Setting the CMake cache variable HAVE_GETADDRINFO_THREADSAFE=1 solves the mentioned error. Also see: https://github.com/curl/curl/pull/12094 --- Ports/curl/package.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ports/curl/package.sh b/Ports/curl/package.sh index 5502ed8080..8c0c6948a3 100755 --- a/Ports/curl/package.sh +++ b/Ports/curl/package.sh @@ -26,7 +26,8 @@ configure() { -DCURL_DISABLE_NTLM='ON' \ -DCURL_DISABLE_SOCKETPAIR='ON' \ -DCURL_DISABLE_TESTS='ON' \ - -DCURL_HIDDEN_SYMBOLS='OFF' + -DCURL_HIDDEN_SYMBOLS='OFF' \ + -DHAVE_GETADDRINFO_THREADSAFE=1 } build() {