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)
Sep 21 2024, 11:45 PM
Unknown Object (File)
Sep 21 2024, 12:04 PM
Unknown Object (File)
Sep 17 2024, 12:28 AM
Unknown Object (File)
Sep 16 2024, 7:37 PM
Unknown Object (File)
Sep 7 2024, 3:58 PM
Unknown Object (File)
Sep 4 2024, 3:43 PM
Unknown Object (File)
Aug 29 2024, 3:44 AM
Unknown Object (File)
Aug 22 2024, 2:31 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.