commit:     4f820e90165cb71b87c468dcd05b34c35e08898f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  6 10:09:51 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep  6 10:09:52 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f820e90

net-misc/curl: disable pthreads for mingw cross

Can't use kernel_Winnt (at least at the moment) as it's an implicit IUSE
only in embedded profiles...

Bug: https://bugs.gentoo.org/910605
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/curl/curl-8.2.1.ebuild | 6 ++++++
 net-misc/curl/curl-9999.ebuild  | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/net-misc/curl/curl-8.2.1.ebuild b/net-misc/curl/curl-8.2.1.ebuild
index 72c9069bc754..872fa57afa80 100644
--- a/net-misc/curl/curl-8.2.1.ebuild
+++ b/net-misc/curl/curl-8.2.1.ebuild
@@ -276,6 +276,12 @@ multilib_src_configure() {
                )
        fi
 
+       if [[ ${CHOST} == *mingw* ]] ; then
+               myconf+=(
+                       --disable-pthreads
+               )
+       fi
+
        ECONF_SOURCE="${S}" econf "${myconf[@]}"
 
        if ! multilib_is_native_abi; then

diff --git a/net-misc/curl/curl-9999.ebuild b/net-misc/curl/curl-9999.ebuild
index 63a8fa2ec57b..044db08d02b5 100644
--- a/net-misc/curl/curl-9999.ebuild
+++ b/net-misc/curl/curl-9999.ebuild
@@ -282,6 +282,12 @@ multilib_src_configure() {
                )
        fi
 
+       if [[ ${CHOST} == *mingw* ]] ; then
+               myconf+=(
+                       --disable-pthreads
+               )
+       fi
+
        ECONF_SOURCE="${S}" econf "${myconf[@]}"
 
        if ! multilib_is_native_abi; then

Reply via email to