aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/amd/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/amd/Makefile.inc')
-rw-r--r--usr.sbin/amd/Makefile.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/amd/Makefile.inc b/usr.sbin/amd/Makefile.inc
index 186b5085c24c..3ded149cc0c9 100644
--- a/usr.sbin/amd/Makefile.inc
+++ b/usr.sbin/amd/Makefile.inc
@@ -18,6 +18,9 @@ CFLAGS+= -I${.CURDIR}/../../../contrib/amd/include
CFLAGS+= -I${.CURDIR}/../../../contrib/amd
CFLAGS+= -DHAVE_CONFIG_H
+TARGET_ARCH?= ${MACHINE_ARCH}
+CFLAGS+= -DHOST_CPU=\"${TARGET_ARCH}\" -DHOST_ARCH=\"${TARGET_ARCH}\"
+
.if exists(${.OBJDIR}/../libamu)
LIBAMUDIR= ${.OBJDIR}/../libamu
.else