[Mesa-dev] [Bug 100120] Mesa fails to build with gcc address sanitizer (-fsanitize=address -lasan)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Mar 9 14:00:42 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=100120
--- Comment #4 from Emil Velikov <emil.l.velikov at gmail.com> ---
-dl is (module bugs of course) already passed then libGL/libGLX_mesa is build.
As pointed out we don't have a libtool which honours fsanitize, so I'd suggest
adding it to the CC/CXX variables like below.
./autogen.sh CC="gcc -fsanitize=address" CXX="g++ -fsanitize=address"
Note: I'm wondering if the explicit -lasan isn't agcc/clang bug. Can we get a
reference reading why we need it, considering the explicit -f.... toggle we
pass to gcc/clang.
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170309/14624322/attachment.html>
More information about the mesa-dev
mailing list