On Sun, Nov 18, 2012 at 09:01:17PM -0800, H.J. Lu wrote:
> This patch adds STATIC_LIBASAN_LIBS so that one can simply use
> "gcc -faddress-sanitizer -static-libasan".  OK to install?

The usual way other libraries use is some special spec file generated
by configure in those libraries and then sourced in.  But I guess
even these STATIC_LIBASAN_LIBS is ok for now.

> 2012-11-18  H.J. Lu  <hongjiu...@intel.com>
> 

>       * gcc.c (ADD_STATIC_LIBASAN_LIBS): New macro.  Defined
>       with STATIC_LIBASAN_LIBS.
>       (LIBASAN_SPEC): Add STATIC_LIBASAN_LIBS.
>       * config/gnu-user.h (STATIC_LIBASAN_LIBS): New macro.

So, ok for trunk.

For PR sanitizer/55379 we'll need to add
%{static:%e-fsanitize=address requires dynamic linking}
afterwards.

        Jakub

Reply via email to