]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: add "-mt" for pthread support on HP-UX
authorMichael Osipov <michael.osipov@innomotics.com>
Wed, 17 Sep 2025 18:33:25 +0000 (20:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Sep 2025 21:12:43 +0000 (23:12 +0200)
HP-UX requires this compiler and linker flag to pass proper macros and
add required libraries.

Closes #18585

configure.ac

index af005beffd12b6d4250c403c1f729377158f3886..3f02d037ef3dfbb3c30165bb80688dd4287a6b03 100644 (file)
@@ -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"
           ;;
         *)
           ;;