Page MenuHomeFreeBSD

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

Authored by bapt on Wed, Nov 6, 8:33 AM.
Tags
None
Referenced Files
F102200984: D47465.id.diff
Fri, Nov 8, 9:24 PM
F102200436: D47465.id146090.diff
Fri, Nov 8, 9:12 PM
F102197479: D47465.id146090.diff
Fri, Nov 8, 8:11 PM
F102171598: D47465.id.diff
Fri, Nov 8, 11:50 AM
F102170671: D47465.id.diff
Fri, Nov 8, 11:40 AM
Unknown Object (File)
Fri, Nov 8, 12:26 AM

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.Wed, Nov 6, 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?