From: Michael Osipov Date: Wed, 17 Sep 2025 11:32:52 +0000 (+0200) Subject: ITS#10391 - Reactivate "-mt" for pthread support on HP-UX (and Solaris) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eec5edd984efe2274dc8f311f61a94178750e7fc;p=thirdparty%2Fopenldap.git ITS#10391 - Reactivate "-mt" for pthread support on HP-UX (and Solaris) HP-UX, along with Solaris, requires this compiler and linker flag to pass proper macros and add required libraries. --- diff --git a/configure.ac b/configure.ac index 60c53bb01e..be79344c88 100644 --- a/configure.ac +++ b/configure.ac @@ -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])