From a3e75eb112ff1c698ddf9eae68645687cebd4f3a Mon Sep 17 00:00:00 2001 From: ale Date: Thu, 12 Feb 2004 14:24:55 +0000 Subject: Use PTHREAD_LIBS only if OSVERSION >= 500016. This fixes compilation of mod_php with apache2-worker on -stable. PR: ports/62729 Submitted by: Maxim Maximov Approved by: nork (mentor/implicitly) --- lang/php53/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lang/php53') diff --git a/lang/php53/Makefile b/lang/php53/Makefile index 693aecc26b51..c3e88a8ee7f3 100644 --- a/lang/php53/Makefile +++ b/lang/php53/Makefile @@ -67,12 +67,6 @@ GNU_CONFIGURE= yes USE_BISON= yes USE_REINPLACE= yes -WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//} -WITH_PTHREAD_CFLAGS?= ${PTHREAD_CFLAGS} - -CONFIGURE_ENV= ac_cv_pthreads_lib=${WITH_PTHREAD_LIBS} \ - ac_cv_pthreads_cflags=${WITH_PTHREAD_CFLAGS} - CONFIGURE_ARGS= --enable-versioning \ --enable-memory-limit \ --with-layout=GNU \ @@ -541,6 +535,13 @@ CONFIGURE_ARGS+=--with-zlib .include +.if ${OSVERSION} >= 500016 +WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//} +WITH_PTHREAD_CFLAGS?= ${PTHREAD_CFLAGS} +CONFIGURE_ENV= ac_cv_pthreads_lib=${WITH_PTHREAD_LIBS} \ + ac_cv_pthreads_cflags=${WITH_PTHREAD_CFLAGS} +.endif + .if !defined(WITHOUT_APACHE) .if exists(${LOCALBASE}/include/apache2/httpd.h) WITH_APACHE2= yes -- cgit