mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Use the right fix (PTHREAD_LIBS) to build on all OS versions.
Eagle eyes: kris
This commit is contained in:
parent
334811d5ef
commit
eb8e70347a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155636
1 changed files with 4 additions and 6 deletions
|
@ -27,15 +27,13 @@ ALL_TARGET=
|
||||||
MAN1= iozone.1
|
MAN1= iozone.1
|
||||||
PLIST_FILES= bin/iozone
|
PLIST_FILES= bin/iozone
|
||||||
|
|
||||||
|
OPTIONS= THREADS "Enable threading (uses pthreads)" on
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if ${OSVERSION} > 500000
|
|
||||||
OPTIONS= THREADS "Enable threading (uses pthreads)" on
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if defined (WITH_THREADS)
|
.if defined (WITH_THREADS)
|
||||||
CFLAGS+= -pthread
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
||||||
MAKE_ENV= LDFLAGS=-lpthread
|
MAKE_ENV= LDFLAGS=${PTHREAD_LIBS}
|
||||||
.else
|
.else
|
||||||
CFLAGS+=-DNO_THREADS
|
CFLAGS+=-DNO_THREADS
|
||||||
.endif
|
.endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue