diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index 4fcae712e9741c..d08dfe30d7de89 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -360,6 +360,9 @@ _ILINKS+= ${MACHINE_CPUARCH} .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" _ILINKS+= x86 .endif +.if ${MACHINE_CPUARCH} == "amd64" +_ILINKS+= i386 +.endif # Ensure that the link exists without depending on it when it exists. # Ensure that debug info references the path in the source tree. diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 63041480eca9e9..b67c84faea0757 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -283,6 +283,9 @@ _ILINKS=machine .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" _ILINKS+=x86 .endif +.if ${MACHINE_CPUARCH} == "amd64" +_ILINKS+=i386 +.endif CLEANFILES+=${_ILINKS} all: ${PROG}