1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Handle the case when dtrace build is disabled (WITHOUT_CDDL=yes)

Approved by:    swills
This commit is contained in:
Andrey A. Chernov 2014-11-08 05:22:30 +00:00
parent 7c6916706a
commit 8dcbb209b7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372304

View File

@ -86,7 +86,9 @@ CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
.if ${OPSYS} == "FreeBSD"
.if (${ARCH} == "i386" && ${OSVERSION} > 1010000) || (${ARCH} == "amd64" && ${OSVERSION} > 903000)
.if exists(/usr/sbin/dtrace) && \
((${ARCH} == "i386" && ${OSVERSION} > 1010000) || \
(${ARCH} == "amd64" && ${OSVERSION} > 903000))
CONFIGURE_ARGS+= --enable-dtrace
.else
CONFIGURE_ARGS+= --disable-dtrace