summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-02-27 14:10:09 +0000
committerru <ru@FreeBSD.org>2004-02-27 14:10:09 +0000
commit84b2428dd3d99604fb1ac3cf7211ad9404d5f62b (patch)
tree2aec4374306c7513f64c2c0d62c20c6163f0f0a5 /sys/boot/i386
parent9c0d0ba7c86b64d8a30376d5222c361348fd8c1e (diff)
downloadFreeBSD-src-84b2428dd3d99604fb1ac3cf7211ad9404d5f62b.zip
FreeBSD-src-84b2428dd3d99604fb1ac3cf7211ad9404d5f62b.tar.gz
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.
Diffstat (limited to 'sys/boot/i386')
-rw-r--r--sys/boot/i386/loader/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/boot/i386/loader/Makefile b/sys/boot/i386/loader/Makefile
index ed6d5d3..55152bb 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 <bsd.prog.mk>
OpenPOWER on IntegriCloud