Page MenuHomeFreeBSD

Build the elftoolchain libraries as part of bootstrap-tools
ClosedPublic

Authored by arichardson on Nov 1 2018, 12:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 19, 9:29 AM
Unknown Object (File)
Sun, Oct 19, 7:57 AM
Unknown Object (File)
Mon, Sep 29, 8:35 PM
Unknown Object (File)
Sep 3 2025, 9:49 PM
Unknown Object (File)
Aug 14 2025, 11:32 PM
Unknown Object (File)
Aug 5 2025, 12:24 PM
Unknown Object (File)
Jul 26 2025, 9:31 AM
Unknown Object (File)
Jul 4 2025, 6:56 PM
Subscribers

Details

Summary

It is not necessary to build libelf and libdwarf this early. Furthermore,
when building on Linux/MacOS, m4 will only be built during the bootstrap
tools phase and not be available in $PATH before.

Test Plan

bootstrap still works

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Makefile.inc1
1991–1996 ↗(On Diff #49876)

This comment implies that libelf/libdwarf built in bootstrap-tools wouldn't be used by the rest of elftoolchain; if this is not the case we need to update this as well.

arichardson added inline comments.
Makefile.inc1
1991–1996 ↗(On Diff #49876)

Well they do use the host compiler and libraries. However, ${WORLDTMP}/legacy/lib is included in the -L flags so any libraries built during bootstrap-tools (such as libnetbsd, liby, etc) are found by the linker for the ones in /usr/lib.

emaste added inline comments.
Makefile.inc1
1991–1996 ↗(On Diff #49876)

Maybe "Bootstrap tools use the host's compiler and libraries, augmented by -legacy, in addition to the libraries built in bootstrap-tools.?

This revision is now accepted and ready to land.Nov 1 2018, 7:39 PM
This revision was automatically updated to reflect the committed changes.