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:
parent
334811d5ef
commit
eb8e70347a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155636
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user