]> 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>
Tue, 4 Nov 2025 16:14:10 +0000 (16:14 +0000)
HP-UX, along with Solaris, requires this compiler and linker flag to pass
proper macros and add required libraries.

configure.ac

index 381cb601a24a5cba9f1a5a52472d1c5e6b748a76..542be6e5b6825d0cd20b4e8c48998a5bb613164e 100644 (file)
@@ -1362,7 +1362,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 (?)
@@ -1400,7 +1400,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])