[Bug sanitizer/84285] Fail to statically link with -fsanitize=undefined
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 8 14:52:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84285
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
For that we have:
-static-libubsan
When the -fsanitize=undefined option is used to link a program, the
GCC driver automatically links against libubsan. If libubsan is available as a
shared library, and the -static option is not used, then this links against the
shared version of
libubsan. The -static-libubsan option directs the GCC driver to
link libubsan statically, without necessarily linking other libraries
statically.
More information about the Gcc-bugs
mailing list