From 8267703326b11791034bfda0ad6e7a2b4441adb6 Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Tue, 25 Jun 2002 06:43:43 +0000 Subject: [PATCH] . Add ${PTHREAD_CFLAGS} to compilation flags. . Portable linkage with pthread library by using ${PTHREAD_LIB} rather than hardwiring -pthread. Submitted by: Sean Chittenden (1) dougb (2) --- security/hashish/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/hashish/Makefile b/security/hashish/Makefile index a6e0fa5b15c4..034e4f7fe524 100644 --- a/security/hashish/Makefile +++ b/security/hashish/Makefile @@ -25,8 +25,8 @@ CFLAGS+= -I${LOCALBASE}/include USE_GMAKE= yes post-patch: - @${REINPLACE_CMD} -e "s,^CXXFLAGS =,CXXFLAGS+=,g ; \ - s,^LBLIBS =,LBLIBS = -pthread -L${LOCALBASE}/lib,g" \ + @${REINPLACE_CMD} -e "s,^CXXFLAGS =,CXXFLAGS+=${PTHREAD_CFLAGS},g ; \ + s,^LBLIBS =,LBLIBS = ${PTHREAD_LIBS} -L${LOCALBASE}/lib,g" \ ${WRKSRC}/Makefile @${REINPLACE_CMD} -e "s,crypto/,cryptopp/,g" ${WRKSRC}/src/main.cpp