Page MenuHomeFreeBSD

libgcc_s: add libgcc_s_asneeded.so wrapper for gcc 16
ClosedPublic

Authored by siva on Sep 8 2026, 10:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 17, 10:26 PM
Unknown Object (File)
Fri, Oct 16, 4:06 PM
Unknown Object (File)
Sun, Oct 11, 10:40 AM
Unknown Object (File)
Sun, Oct 11, 4:13 AM
Unknown Object (File)
Sat, Oct 10, 3:16 PM
Unknown Object (File)
Sat, Oct 10, 6:06 AM
Unknown Object (File)
Sat, Oct 3, 6:35 PM
Unknown Object (File)
Sat, Oct 3, 5:53 PM
Subscribers

Details

Summary

GCC 16[0][1] now requires a wrapper lib to handle
'--push-state --as-needed -lgcc_s --pop-state' logic[1]
for gcc invocations. g++ will still unconditionally
use -lgcc_s.

This fixes buildworld with gcc16.

[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=8a99fdb70493df1294b53406913e5ea1fc971c13
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123396

Diff Detail

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