1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Use the right fix (PTHREAD_LIBS) to build on all OS versions.

Eagle eyes: 	kris
This commit is contained in:
Jean-Marc Zucconi 2006-02-10 10:12:29 +00:00
parent 334811d5ef
commit eb8e70347a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155636

View File

@ -27,15 +27,13 @@ ALL_TARGET=
MAN1= iozone.1
PLIST_FILES= bin/iozone
OPTIONS= THREADS "Enable threading (uses pthreads)" on
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500000
OPTIONS= THREADS "Enable threading (uses pthreads)" on
.endif
.if defined (WITH_THREADS)
CFLAGS+= -pthread
MAKE_ENV= LDFLAGS=-lpthread
CFLAGS+= ${PTHREAD_CFLAGS}
MAKE_ENV= LDFLAGS=${PTHREAD_LIBS}
.else
CFLAGS+=-DNO_THREADS
.endif