On Sat, 2 Feb 2002, Dale Ghent wrote:

| I still think that it's a bad idea to unconditionally include libpthread
| on Solaris builds in cases where HPSA is not enabled, which would be
| (relatively) rare situations because HPSA is not the default for Solaris.

Replying to my own email here.

I figured, that since we're halfway there by adding -lpthread to LIBS, we
might as well go all-out and make it useful to us on Solaris.

Attached is a patch to add -DUSE_PTHREAD_SERIALIZED_ACCEPT to CFLAGS for
Solaris.

I've tested HPSA sucessfully on Solaris 8, and recently, with 2.6. Both
had expected results and no unexpected side-effects.

/dale
--- /local/src/apache-dev/apache-1.3/src/Configure.orig Sat Feb  2 14:23:05 2002
+++ /local/src/apache-dev/apache-1.3/src/Configure      Sat Feb  2 14:23:31 2002
@@ -585,7 +585,7 @@
     *-solaris2*)
        PLATOSVERS=`echo $PLAT | sed 's/^.*solaris2.//'`
        OS="Solaris $PLATOSVERS"
-       CFLAGS="$CFLAGS -DSOLARIS2=$PLATOSVERS"
+       CFLAGS="$CFLAGS -DSOLARIS2=$PLATOSVERS" -DUSE_PTHREAD_SERIALIZED_ACCEPT
        LIBS="$LIBS -lsocket -lnsl -lpthread"
        DBM_LIB=""
        case "$PLATOSVERS" in

Reply via email to