From 8ffe568cee30bead8a98472411c16b7a288d38c2 Mon Sep 17 00:00:00 2001 From: Clement Laforet Date: Sun, 10 Oct 2004 08:17:59 +0000 Subject: [PATCH] - Fix compilation with threads enabled on 5.x (due to PTHREAD_LIBS changes) Approved by: portmgr (krion) --- www/apache2/Makefile | 2 +- www/apache20/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/apache2/Makefile b/www/apache2/Makefile index 0322398b7a7b..47e5e969711f 100644 --- a/www/apache2/Makefile +++ b/www/apache2/Makefile @@ -148,7 +148,7 @@ INSTALLS_SHLIB= yes LDCONFIG_DIRS= %%PREFIX%%/lib/apache2 .endif -WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//} +WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//:S/-//} WITH_PTHREAD_CFLAGS?= ${PTHREAD_CFLAGS} .include "${APACHEDIR}/Makefile.doc" diff --git a/www/apache20/Makefile b/www/apache20/Makefile index 0322398b7a7b..47e5e969711f 100644 --- a/www/apache20/Makefile +++ b/www/apache20/Makefile @@ -148,7 +148,7 @@ INSTALLS_SHLIB= yes LDCONFIG_DIRS= %%PREFIX%%/lib/apache2 .endif -WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//} +WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//:S/-//} WITH_PTHREAD_CFLAGS?= ${PTHREAD_CFLAGS} .include "${APACHEDIR}/Makefile.doc"