[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Support for -static-libasan

From: Dimitrios Apostolou
Subject: Support for -static-libasan
Date: Sat, 14 Jan 2017 01:38:07 +0100 (CET)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)

Hello list,

I was getting the following error message after building with
CFLAGS='-fsanitize=address -static-libasan' LDFLAGS=-static-libasan
and trying to run the generated executable.

==5331==Your application is linked against incompatible ASan runtimes.

Please note that the project also contains a shared library, which libtool was always linking while ignoring the "-static-libasan" flag. So the library was linking to "" while the binaries were linked with the static runtime.

The attached patch on the generated libtool script solved the issue to me. Feel free to use it upstream, if it makes sense.


Attachment: libtool-link-static-libasan.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]