From 4e2a0135a0fd3dc59d8e7f48ccc1abf0e548bae7 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 13 Aug 2022 11:53:22 -0600 Subject: [PATCH] mrsas module: Use MACHINE_ARCH exlcusively TARGET_ARCH is always wrong when not used at the toplevel Makefile*, or in something that has to be included from there. Switch to using MACHINE_ARCH exclusively here since there's no benefit from assigning TARGET_ARCH the value of MACHINE_ARCH and then using TARGET_ARCH (and make TARGET_ARCH=xxx won't work). Sponsored by: Netflix --- sys/modules/mrsas/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/modules/mrsas/Makefile b/sys/modules/mrsas/Makefile index c3c7580805f..130a46a8ad5 100644 --- a/sys/modules/mrsas/Makefile +++ b/sys/modules/mrsas/Makefile @@ -15,8 +15,7 @@ SRCS+= device_if.h bus_if.h pci_if.h opt_cam.h opt_scsi.h .include CFLAGS+= -fgnu89-inline -TARGET_ARCH = ${MACHINE_ARCH} -.if ${TARGET_ARCH} == "amd64" +.if ${MACHINE_ARCH} == "amd64" CFLAGS+= -DCOMPAT_FREEBSD32 .endif