]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10391 - Reactivate "-mt" for pthread support on HP-UX (and Solaris)
authorMichael Osipov <michael.osipov@innomotics.com>
Wed, 17 Sep 2025 11:32:52 +0000 (13:32 +0200)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 22 Oct 2025 20:07:49 +0000 (20:07 +0000)
HP-UX, along with Solaris, requires this compiler and linker flag to pass
proper macros and add required libraries.

configure.ac

index 60c53bb01e7f0ce22787748be5857eaca6e87129..be79344c88df9c1cdb7fd7f22c066092258afdce 100644 (file)
@@ -1338,7 +1338,7 @@ case $ol_with_threads in auto | yes | posix)
                dnl     pthread_create() in $LIBS
                dnl
                dnl Check special pthread (final) flags
-               dnl     [skipped] pthread_create() with -mt (Solaris) [disabled]
+               dnl     pthread_create() with -mt (Solaris/HP-UX)
                dnl     pthread_create() with -kthread (FreeBSD)
                dnl     pthread_create() with -pthread (FreeBSD/Digital Unix)
                dnl     pthread_create() with -pthreads (?)
@@ -1376,7 +1376,7 @@ case $ol_with_threads in auto | yes | posix)
                        ol_link_pthreads=""
                fi
 
-dnl            OL_PTHREAD_TRY([-mt],           [ol_cv_pthread_mt])
+               OL_PTHREAD_TRY([-mt],           [ol_cv_pthread_mt])
                OL_PTHREAD_TRY([-kthread],      [ol_cv_pthread_kthread])
                OL_PTHREAD_TRY([-pthread],      [ol_cv_pthread_pthread])
                OL_PTHREAD_TRY([-pthreads],     [ol_cv_pthread_pthreads])