Index: sys/boot/Makefile.inc =================================================================== --- sys/boot/Makefile.inc +++ sys/boot/Makefile.inc @@ -22,3 +22,14 @@ # when this test succeeds rather than require dd to be a bootstrap tool. DD_NOSTATUS!=(dd status=none count=0 2> /dev/null && echo status=none) || true DD=dd ${DD_NOSTATUS} + + +.ifdef LOADER_FORCE_LE +.if ${LOADER_FORCE_LE} == "y" + +.if ${MACHINE_ARCH} == "powerpc64" +CFLAGS+= -mlittle-endian +.endif + +.endif +.endif