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
Unknown Object (File)
Fri, Nov 15, 4:56 AM
Unknown Object (File)
Wed, Nov 13, 5:17 PM
Unknown Object (File)
Sun, Nov 10, 1:40 PM
Unknown Object (File)
Fri, Nov 8, 9:24 PM
Unknown Object (File)
Fri, Nov 8, 9:12 PM
Unknown Object (File)
Fri, Nov 8, 8:11 PM
Unknown Object (File)
Fri, Nov 8, 11:50 AM
Unknown Object (File)
Fri, Nov 8, 11:40 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?