From owner-svn-src-head@freebsd.org Fri Jun 15 16:48:10 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B97F2101382B; Fri, 15 Jun 2018 16:48:10 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7032A77D93; Fri, 15 Jun 2018 16:48:10 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4D3291A08E; Fri, 15 Jun 2018 16:48:10 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5FGmAJ7022145; Fri, 15 Jun 2018 16:48:10 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5FGm9fV022143; Fri, 15 Jun 2018 16:48:09 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201806151648.w5FGm9fV022143@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Fri, 15 Jun 2018 16:48:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r335216 - head X-SVN-Group: head X-SVN-Commit-Author: bdrewery X-SVN-Commit-Paths: head X-SVN-Commit-Revision: 335216 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2018 16:48:10 -0000 Author: bdrewery Date: Fri Jun 15 16:48:09 2018 New Revision: 335216 URL: https://svnweb.freebsd.org/changeset/base/335216 Log: Only build jevents if MK_PMC is yes and only for amd64 in libcompat. Sponsored by: Dell EMC Modified: head/Makefile.inc1 head/Makefile.libcompat Modified: head/Makefile.inc1 ============================================================================== --- head/Makefile.inc1 Fri Jun 15 16:41:28 2018 (r335215) +++ head/Makefile.inc1 Fri Jun 15 16:48:09 2018 (r335216) @@ -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 Modified: head/Makefile.libcompat ============================================================================== --- head/Makefile.libcompat Fri Jun 15 16:41:28 2018 (r335215) +++ head/Makefile.libcompat Fri Jun 15 16:48:09 2018 (r335216) @@ -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}" \