Page MenuHomeFreeBSD

lib/libcrypt: remove ldscript hack
AbandonedPublic

Authored by fuz on Nov 5 2024, 10:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 2:54 AM
Unknown Object (File)
Thu, Dec 5, 5:51 AM
Unknown Object (File)
Nov 21 2024, 4:29 AM
Unknown Object (File)
Nov 16 2024, 10:55 AM
Unknown Object (File)
Nov 16 2024, 6:59 AM
Unknown Object (File)
Nov 15 2024, 9:39 PM
Unknown Object (File)
Nov 13 2024, 1:20 PM
Unknown Object (File)
Nov 13 2024, 12:25 AM
Subscribers

Details

Reviewers
kevans
imp
bapt
Summary

This hack caused the bootstrap build to fail on macOS as macOS ld(1) does
not support static libraries being linker scripts. As a consequence, static
consumers of libcrypt now need to link with -lcrypt -lmd instead of just
-lmd.

Relnotes: yes
Fixes: cb5e41b160838880de7d03100afa02e4edee5a9e (D47062)

Test Plan

build test successful, CI tests no longer fail.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 60417
Build 57301: arc lint + arc unit

Event Timeline

fuz requested review of this revision.Nov 5 2024, 10:54 PM
fuz created this revision.

@bapt has managed to fix the issue causing the bootstrap to fail on macOS. Seems like we don't need to break compatibility after all.