]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
libpmc: use $MACHINE_CPUARCH
authorMitchell Horne <mhorne@FreeBSD.org>
Mon, 31 May 2021 20:20:08 +0000 (17:20 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Mon, 31 May 2021 20:39:05 +0000 (17:39 -0300)
This is preferred over $MACHINE_ARCH for these types of checks, although
it makes no difference for amd64 or i386. No functional change intended.

Sponsored by: The FreeBSD Foundation

lib/libpmc/Makefile

index 1006b6f934694435dc9ef7a5aa9d99a8360f1d7d..da3f8a72d26bacf1281784a31bfb8d0da489ebd0 100644 (file)
@@ -10,7 +10,7 @@ LDADD+=       -lc++
 
 .if ${MACHINE_CPUARCH} == "aarch64"
 EVENT_ARCH="arm64"
-.elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
+.elif ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
 EVENT_ARCH="x86"
 .elif ${MACHINE_ARCH} == "powerpc"
 EVENT_ARCH="powerpc"