https://bugs.freedesktop.org/show_bug.cgi?id=100120

--- Comment #5 from Jeff Smith <whydo...@yahoo.com> ---
(In reply to Emil Velikov from comment #4)
> 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.

I don't have a reference, but from observation, -fsanitize=address does two
things:
 - in the compile stage, it instruments the code, which adds references to
symbols in libasan.
 - in the link stage, it adds libasan (and libdl and possibly others) to the
set of libraries to link.
Since libtool is not passing -fsanitize=address on to the compiler at link
time, the -lasan use is just one work-around.

Also, -fsanitize=address messes with configure's detection of libdl.  Again, if
-fsanitize=address was working properly at link-time, it probably would not
matter.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to