[Bug sanitizer/69443] -fsanitize=address should add -lpthread to linker call
y.gribov at samsung dot com
gcc-bugzilla@gcc.gnu.org
Fri May 6 09:31:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69443
Yury Gribov <y.gribov at samsung dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |y.gribov at samsung dot com
--- Comment #2 from Yury Gribov <y.gribov at samsung dot com> ---
(In reply to Jakub Jelinek from comment #1)
> I'm afraid it is undesirable, various projects flag ldd -u diagnosed
> dependencies as errors. Perhaps just configure without -fsanitize=address
> in CFLAGS and only add those for the actual builds?
We could prefix -lpthread with -Wl,--as-needed to work around this.
More information about the Gcc-bugs
mailing list