Page MenuHomeFreeBSD

boot: fix OBJS to not include BTX's crt0.o

Authored by imp on Feb 22 2021, 11:58 PM.



According to comments in the Makefile, to make pxeboot work (is this still true,
and if so why?) we need to have crt0.o first. We've done this by adding it to
OBJS before all the other .o's are added. However, there's a problem. This also
adds it to the CLEANFILES variable, which causes it to be removed from multiple
places. The dependencies may also cause it to be re-built at a time that's after
boot2 is built. This causes installs to fail because at install time boot2 is
considered to be out of date and the programs to rebuild it are no longer in the

Cope with this problem by just adding it to LDFLAGS instead.

Diff Detail

rG FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

imp requested review of this revision.Feb 22 2021, 11:58 PM
imp created this revision.

Likely better words here are needed to describe what's going on...

This revision was not accepted when it landed; it landed in state Needs Review.May 6 2021, 7:10 PM
This revision was automatically updated to reflect the committed changes.