From eec24f3275f7111083301bad74df766014ccb390 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 27 Feb 2004 14:10:09 +0000 Subject: [PATCH] For some reason crt0.o needs to be linked first for pxeboot(8) to work. This is odd because loader(8) doesn't suffer from this problem. Perhaps pxeboot bootstrap can be fixed to handle this better. Anyway, PXE booting should work again. --- sys/boot/i386/loader/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/boot/i386/loader/Makefile b/sys/boot/i386/loader/Makefile index ed6d5d3cfcc..55152bbd522 100644 --- a/sys/boot/i386/loader/Makefile +++ b/sys/boot/i386/loader/Makefile @@ -82,8 +82,11 @@ FILESDIR_loader.conf= /boot/defaults FILES+= ${.CURDIR}/loader.rc .endif -DPADD= ${BTXCRT} ${LIBFICL} ${LIBI386} ${LIBSTAND} -LDADD= ${BTXCRT} ${LIBFICL} ${LIBI386} -lstand +# XXX crt0.o needs to be first for pxeboot(8) to work +OBJS= ${BTXCRT} + +DPADD= ${LIBFICL} ${LIBI386} ${LIBSTAND} +LDADD= ${LIBFICL} ${LIBI386} -lstand .include