http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59106

--- Comment #15 from Kostya Serebryany <kcc at gcc dot gnu.org> ---
(In reply to Yury Gribov from comment #14)
> Sent to gcc-patches: http://gcc.gnu.org/ml/gcc-patches/2013-11/msg01990.html
> 
> As for libubsan, it does not seem to support static link anyway:

you need -ldl -lpthread (asan has it already)

> 
>  /home/ygribov/install/gcc-master/bin/gcc -g repro.i -fsanitize=undefined
> -static-libubsan
>  ...
>  /sanitizer_linux_libcdep.cc:71: undefined reference to `pthread_getattr_np'
>  /sanitizer_linux_libcdep.cc:74: undefined reference to
> `pthread_attr_getstack'
>  /sanitizer_linux_libcdep.cc:85: undefined reference to `dlsym'
>  ...
> 
> Once it does, we can go with the same per-file flags hack that we do e.g. in
> libstdc++-v3/src/Makefile.am.

Reply via email to