summaryrefslogtreecommitdiffstats
path: root/sys/conf/kmod.mk
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-04-03 04:56:05 +0000
committerimp <imp@FreeBSD.org>2005-04-03 04:56:05 +0000
commitb3f43c4882e22d525038362a759dbe1e152f61fc (patch)
tree303504f8d119db65fe6ffe211c0e3344cea2e273 /sys/conf/kmod.mk
parentb115dca3b21275df7c346e1ad344e8aaddcd81fa (diff)
downloadFreeBSD-src-b3f43c4882e22d525038362a759dbe1e152f61fc.zip
FreeBSD-src-b3f43c4882e22d525038362a759dbe1e152f61fc.tar.gz
Don't forget to create new-style links for module builds.
Forgotten by: imp@ Reminded by: nyan@
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r--sys/conf/kmod.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 07d0c38..7607c20 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -188,6 +188,9 @@ ${FULLPROG}: ${OBJS}
.endif
_ILINKS=@ machine
+.if ${MACHINE} != ${MACHINE_ARCH}
+_ILINKS+=${MACHINE_ARCH}
+.endif
all: objwarn ${PROG}
@@ -213,8 +216,10 @@ SYSDIR= ${_dir}
${_ILINKS}:
@case ${.TARGET} in \
- machine) \
+ ${MACHINE_ARCH}) \
path=${SYSDIR}/${MACHINE_ARCH}/include ;; \
+ machine) \
+ path=${SYSDIR}/${MACHINE}/include ;; \
@) \
path=${SYSDIR} ;; \
esac ; \
OpenPOWER on IntegriCloud