libtool-patches
[Top][All Lists]
Advanced

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

Support for -static-libasan (fwd)


From: Dimitrios Apostolou
Subject: Support for -static-libasan (fwd)
Date: Tue, 24 Jan 2017 16:05:36 +0100 (CET)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)

Forwarding to the patches list, since I got no feedback on the generic one.

---------- Forwarded message ----------
Date: Sat, 14 Jan 2017 01:38:07 +0100 (CET)
From: Dimitrios Apostolou <address@hidden>
To: address@hidden
Subject: Support for -static-libasan

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 "libasan.so" 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.

Thanks,
Dimitris

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


reply via email to

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