From: Michael Osipov Date: Wed, 17 Sep 2025 18:33:25 +0000 (+0200) Subject: configure: add "-mt" for pthread support on HP-UX X-Git-Tag: rc-8_17_0-1~366 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74fdc1185f40c2fe2253043ff3f563fbbd4b43ed;p=thirdparty%2Fcurl.git configure: add "-mt" for pthread support on HP-UX HP-UX requires this compiler and linker flag to pass proper macros and add required libraries. Closes #18585 --- diff --git a/configure.ac b/configure.ac index af005beffd..3f02d037ef 100644 --- a/configure.ac +++ b/configure.ac @@ -4340,11 +4340,9 @@ if test "$want_threaded_resolver" = "yes" && test "$USE_THREADS_WIN32" != "1"; t AC_CHECK_FUNC(pthread_create, [USE_THREADS_POSIX=1] ) LIBS="$save_LIBS" - dnl on HP-UX, life is more complicated... case $host in *-hp-hpux*) - dnl it doesn't actually work without -lpthread - USE_THREADS_POSIX="" + CFLAGS="$CFLAGS -mt" ;; *) ;;