aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2021-05-31 20:24:15 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2021-05-31 20:39:05 +0000
commit507d68984a010dab0c3ecc5477c36526c3a7fa48 (patch)
tree27fb705a5cced2afc68242db9111904f92873e80
parent3864da302af34853ddb2c33a42de5668a0d68cdd (diff)
downloadsrc-507d68984a010dab0c3ecc5477c36526c3a7fa48.tar.gz
src-507d68984a010dab0c3ecc5477c36526c3a7fa48.zip
libpmc: limit pmu-events to 64-bit powerpc
Although currently unused, there are only pmu event definitions for POWER8 and POWER9. There is no sense in building these on 32-bit platforms. Sponsored by: The FreeBSD Foundation
-rw-r--r--lib/libpmc/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile
index da3f8a72d26b..285b6c539ece 100644
--- a/lib/libpmc/Makefile
+++ b/lib/libpmc/Makefile
@@ -12,7 +12,7 @@ LDADD+= -lc++
EVENT_ARCH="arm64"
.elif ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
EVENT_ARCH="x86"
-.elif ${MACHINE_ARCH} == "powerpc"
+.elif ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH:Mpowerpc64*} != ""
EVENT_ARCH="powerpc"
.else
# This will generate an empty events table