diff --git a/Makefile.inc1 b/Makefile.inc1 index 2840119cbd76..d7c98f8329f1 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -2446,7 +2446,8 @@ _libmagic=lib/libmagic .endif .if ${MK_PMC} != "no" && \ - (${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "i386") + (${TARGET_ARCH} == "aarch64" || ${TARGET_ARCH} == "amd64" || \ + ${TARGET_ARCH} == "i386") _jevents=lib/libpmc/pmu-events .endif diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile index cb3ea17c3831..93beaa500c79 100644 --- a/lib/libpmc/Makefile +++ b/lib/libpmc/Makefile @@ -7,7 +7,8 @@ INCS= pmc.h pmclog.h pmcformat.h ALLOW_MIPS_SHARED_TEXTREL= -.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" +.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "amd64" || \ + ${MACHINE_ARCH} == "i386" .if ${MACHINE_ARCH} == "aarch64" EVENT_ARCH="arm64"