diff --git a/sys/boot/libstand32/Makefile b/sys/boot/libstand32/Makefile index 93aec6077c57..e04d0bee4a24 100644 --- a/sys/boot/libstand32/Makefile +++ b/sys/boot/libstand32/Makefile @@ -19,6 +19,9 @@ LIB= stand INTERNALLIB= MK_PROFILE= no NO_PIC= +.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "powerpc64" +CFLAGS+= -m32 -I. +.endif WARNS?= 0