[Bug driver/123194] New: Annoying to link libssp statically
ossman at cendio dot se
gcc-bugzilla@gcc.gnu.org
Thu Dec 18 12:05:50 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123194
Bug ID: 123194
Summary: Annoying to link libssp statically
Product: gcc
Version: 15.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: ossman at cendio dot se
Target Milestone: ---
For some targets, specifying -fstack-protector results in a dependency to the
library libssp. This can be very annoying if you want a standalone binary.
Since this library is implicitly added by gcc, you can't deal with it like you
can other libraries. It would be useful if this was easier.
We already have (at least) two other implicit libraries from gcc; libstdc++ and
libgcc. These have flags to tell gcc to link them statically (-static-libstdc++
and -static-libgcc). Something similar would be desired for libssp, or letting
it change implicitly from -static-libgcc.
More information about the Gcc-bugs
mailing list