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)
Wed, Apr 2, 8:48 PM
Unknown Object (File)
Sat, Mar 29, 5:33 AM
Unknown Object (File)
Sat, Mar 29, 1:01 AM
Unknown Object (File)
Mar 25 2025, 12:16 PM
Unknown Object (File)
Feb 10 2025, 7:07 PM
Unknown Object (File)
Feb 8 2025, 8:30 AM
Unknown Object (File)
Feb 8 2025, 8:29 AM
Unknown Object (File)
Jan 28 2025, 4:41 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.