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)
Tue, Apr 23, 12:42 AM
Unknown Object (File)
Tue, Apr 23, 12:42 AM
Unknown Object (File)
Tue, Apr 23, 12:42 AM
Unknown Object (File)
Tue, Apr 23, 12:30 AM
Unknown Object (File)
Sat, Apr 20, 1:42 PM
Unknown Object (File)
Feb 14 2024, 4:52 AM
Unknown Object (File)
Dec 28 2023, 5:20 PM
Unknown Object (File)
Dec 28 2023, 5:20 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.