mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
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
This commit is contained in:
parent
0f067ba4aa
commit
74fdc1185f
1 changed files with 1 additions and 3 deletions
|
|
@ -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] )
|
AC_CHECK_FUNC(pthread_create, [USE_THREADS_POSIX=1] )
|
||||||
LIBS="$save_LIBS"
|
LIBS="$save_LIBS"
|
||||||
|
|
||||||
dnl on HP-UX, life is more complicated...
|
|
||||||
case $host in
|
case $host in
|
||||||
*-hp-hpux*)
|
*-hp-hpux*)
|
||||||
dnl it doesn't actually work without -lpthread
|
CFLAGS="$CFLAGS -mt"
|
||||||
USE_THREADS_POSIX=""
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue