Only build jevents if MK_PMC is yes and only for amd64 in libcompat.
Sponsored by: Dell EMC
This commit is contained in:
parent
ad2afa8c8b
commit
6f1f2b1931
@ -2033,7 +2033,8 @@ _tcsh=bin/csh
|
||||
_libmagic=lib/libmagic
|
||||
.endif
|
||||
|
||||
.if ${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "i386"
|
||||
.if ${MK_PMC} != "no" && \
|
||||
(${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "i386")
|
||||
_jevents=lib/libpmc/pmu-events
|
||||
.endif
|
||||
|
||||
|
@ -155,6 +155,11 @@ _LC_INCDIRS= \
|
||||
lib/ncurses/ncursesw \
|
||||
${_LC_LIBDIRS.yes}
|
||||
|
||||
.if ${MK_PMC} != "no" && ${TARGET_ARCH} == "amd64"
|
||||
_jevents= lib/libpmc/pmu-events
|
||||
.endif
|
||||
|
||||
|
||||
# Shared logic
|
||||
build${libcompat}: .PHONY
|
||||
@echo
|
||||
@ -192,7 +197,7 @@ build${libcompat}: .PHONY
|
||||
DIRPRFX=${_dir}/ ${_t}
|
||||
.endfor
|
||||
.endfor
|
||||
.for _dir in lib/ncurses/ncurses lib/ncurses/ncursesw lib/libmagic lib/libpmc/pmu-events
|
||||
.for _dir in lib/ncurses/ncurses lib/ncurses/ncursesw lib/libmagic ${_jevents}
|
||||
${_+_}cd ${.CURDIR}/${_dir}; \
|
||||
WORLDTMP=${WORLDTMP} \
|
||||
MAKEFLAGS="-m ${.CURDIR}/tools/build/mk ${.MAKEFLAGS}" \
|
||||
|
Loading…
Reference in New Issue
Block a user