Add WITH_PTHREAD_LIBS and WITH_EXPERIMENTAL_THREADS.

These options are for people who want to directly link
apache against libkse and libthr.

Usage:
    WITH_EXPERIMENTAL_THREADS=YES
            Overrides default pthread detection behaviour.
    WITH_PTHREAD_LIBS={kse;thr}
            Lets you choose your pthread lib.
            Don't even try to use "c_r"...

*** These options are unsupported ***
But all gdb backtraces are welcome :-)
AFAIK, apache works well, but mod_php4 (worker MPM) behavior
is quite funny.
All modules which use apr mutexes may crash with KSE.
Since I'm working on it, if you have coredumps, feel free
to send me the backtrace (you must compile libkse, apache
and modules with debugging symbols).
Don't forget to set kern.sugid_coredump to 1.
(using CoreDumpDirectory in httpd.conf can help too)
This commit is contained in:
Clement Laforet 2004-01-21 21:21:12 +00:00
parent 1aeb25a580
commit 17cfbfeee1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=98727
4 changed files with 10 additions and 0 deletions

View File

@ -111,6 +111,8 @@ BROKEN= "apr is installed and may conflict with apache one\
. endif
.endif
WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//}
.include "${APACHEDIR}/Makefile.doc"
.include "${APACHEDIR}/Makefile.modules"

View File

@ -172,6 +172,9 @@ _APACHE_MODULES+= ${LDAP_MODULES}
.if defined(WITH_THREADS)
CONFIGURE_ARGS+= --enable-threads
CFLAGS+= -DFREEBSD_THREAD_HACK
. if defined(WITH_EXPERIMENTAL_THREADS)
CONFIGURE_ARGS+= ac_cv_pthreads_lib=${WITH_PTHREAD_LIBS}
. endif
. if !defined(WITH_CUSTOM_THREADS)
_APACHE_MODULES+= ${THREAD_MODULES}
. else

View File

@ -111,6 +111,8 @@ BROKEN= "apr is installed and may conflict with apache one\
. endif
.endif
WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//}
.include "${APACHEDIR}/Makefile.doc"
.include "${APACHEDIR}/Makefile.modules"

View File

@ -172,6 +172,9 @@ _APACHE_MODULES+= ${LDAP_MODULES}
.if defined(WITH_THREADS)
CONFIGURE_ARGS+= --enable-threads
CFLAGS+= -DFREEBSD_THREAD_HACK
. if defined(WITH_EXPERIMENTAL_THREADS)
CONFIGURE_ARGS+= ac_cv_pthreads_lib=${WITH_PTHREAD_LIBS}
. endif
. if !defined(WITH_CUSTOM_THREADS)
_APACHE_MODULES+= ${THREAD_MODULES}
. else