Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jun 2018 02:15:45 +0000 (UTC)
From:      Matt Macy <mmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334865 - in head: lib usr.sbin
Message-ID:  <201806090215.w592FjPF056531@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmacy
Date: Sat Jun  9 02:15:45 2018
New Revision: 334865
URL: https://svnweb.freebsd.org/changeset/base/334865

Log:
  pmc: don't build on riscv where there's no kmod support

Modified:
  head/lib/Makefile
  head/usr.sbin/Makefile

Modified: head/lib/Makefile
==============================================================================
--- head/lib/Makefile	Sat Jun  9 02:14:33 2018	(r334864)
+++ head/lib/Makefile	Sat Jun  9 02:15:45 2018	(r334865)
@@ -202,7 +202,7 @@ _libdl=		libdl
 .endif
 
 SUBDIR.${MK_OPENSSL}+=	libmp
-.if (${COMPILER_TYPE} == "clang" || (${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 60100))
+.if (${COMPILER_TYPE} == "clang" || (${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 60100) && ${MACHINE_CPUARCH} != "riscv")
 SUBDIR.${MK_PMC}+=	libpmc libpmcstat
 .endif
 SUBDIR.${MK_RADIUS_SUPPORT}+=	libradius

Modified: head/usr.sbin/Makefile
==============================================================================
--- head/usr.sbin/Makefile	Sat Jun  9 02:14:33 2018	(r334864)
+++ head/usr.sbin/Makefile	Sat Jun  9 02:15:45 2018	(r334865)
@@ -179,7 +179,7 @@ SUBDIR.${MK_OPENSSL}+=	keyserv
 SUBDIR.${MK_PC_SYSINSTALL}+=	pc-sysinstall
 SUBDIR.${MK_PF}+=	ftp-proxy
 SUBDIR.${MK_PKGBOOTSTRAP}+=	pkg
-.if (${COMPILER_TYPE} == "clang" || (${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 60100))
+.if (${COMPILER_TYPE} == "clang" || (${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 60100) && ${MACHINE_CPUARCH} != "riscv")
 SUBDIR.${MK_PMC}+=	pmc
 SUBDIR.${MK_PMC}+=	pmcannotate
 SUBDIR.${MK_PMC}+=	pmccontrol



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806090215.w592FjPF056531>