Page MenuHomeFreeBSD

src.libnames.mk: add the notion of hacked a files
Needs ReviewPublic

Authored by bapt on Nov 6 2024, 8:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 25, 6:58 AM
Unknown Object (File)
Wed, Dec 11, 8:47 AM
Unknown Object (File)
Mon, Dec 9, 4:32 AM
Unknown Object (File)
Wed, Nov 27, 12:51 PM
Unknown Object (File)
Nov 15 2024, 4:56 AM
Unknown Object (File)
Nov 13 2024, 5:17 PM
Unknown Object (File)
Nov 10 2024, 1:40 PM
Unknown Object (File)
Nov 8 2024, 9:24 PM

Details

Reviewers
fuz
imp
Summary

ncursesw split of the library introduced the notion of ld script for
the a files, this is not supported by macOS ar command, so bootstrapping
fails there if a lib in the the bootstap process of buildworld.

libcrypt usage of libmd introduce such a case.

Instrument the build system to know about libraries which produces ld
script for a files, so that when used to static link programs like what
is done in the boostrap it actually links against the _real.a with the
dependencies that it needs instead of linking against the ld script.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60418
Build 57302: arc lint + arc unit

Event Timeline

bapt requested review of this revision.Nov 6 2024, 8:33 AM

This is an alternative to D47464, which just removes the ldscript hack entirely.

We just checked the CI build, this does not seem to fix the issue. @imp, maybe you could confirm?