summaryrefslogtreecommitdiff
path: root/benchmarks/iozone/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/iozone/Makefile')
-rw-r--r--benchmarks/iozone/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/benchmarks/iozone/Makefile b/benchmarks/iozone/Makefile
index cf9f5d8e2ef1..96993cb15fa9 100644
--- a/benchmarks/iozone/Makefile
+++ b/benchmarks/iozone/Makefile
@@ -31,17 +31,16 @@ THREADS_DESC= Enable threading (uses pthreads)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTHREADS}
-CFLAGS+= ${PTHREAD_CFLAGS}
-LDFLAGS+= ${PTHREAD_LIBS}
+LDFLAGS+= -lpthread
.else
CFLAGS+= -DNO_THREADS
.endif
post-patch:
.if ${PORT_OPTIONS:MSSH}
- @${REINPLACE_CMD} -e 's|shell\,\"rsh\"|shell\,\"ssh\"|' ${WRKSRC}/iozone.c
+ @${REINPLACE_CMD} -e 's|shell\,\"rsh\"|shell\,\"ssh\"|' \
+ ${WRKSRC}/iozone.c
.endif
- @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/iozone ${STAGEDIR}${PREFIX}/bin