Index: share/mk/src.opts.mk =================================================================== --- share/mk/src.opts.mk +++ share/mk/src.opts.mk @@ -177,6 +177,7 @@ BSD_GREP_FASTMATCH \ CLANG_EXTRAS \ DTRACE_TESTS \ + LOADER_FORCE_LE \ GNU_GREP_COMPAT \ HESIOD \ LIBSOFT \ Index: sys/boot/Makefile.inc =================================================================== --- sys/boot/Makefile.inc +++ sys/boot/Makefile.inc @@ -1,6 +1,6 @@ # $FreeBSD$ -.include +.include SSP_CFLAGS= @@ -22,3 +22,11 @@ # 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} + +.if ${MK_LOADER_FORCE_LE} != "no" + +.if ${MACHINE_ARCH} == "powerpc64" +CFLAGS+= -mlittle-endian +.endif + +.endif