<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Mesa fails to build with gcc address sanitizer (-fsanitize=address -lasan)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100120#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Mesa fails to build with gcc address sanitizer (-fsanitize=address -lasan)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100120">bug 100120</a>
              from <span class="vcard"><a class="email" href="mailto:whydoubt@yahoo.com" title="Jeff Smith <whydoubt@yahoo.com>"> <span class="fn">Jeff Smith</span></a>
</span></b>
        <pre>A few more things I found...

Either with or without a fixed libtool, libdl detection is still affected when
-fsanitize=address is set.  A more precise way to handle this than adding -ldl
to LIBS, is to set DLOPEN_LIBS="-ldl"

Regarding the problems in d3dadapter9, it seems that there are other things
going on:
 - Linking with "-Wl,--no-undefined" seems to interfere with
"-fsanitize=address", making LIBS="-lasan" necessary in this case.
 - Building with "-fsanitize=address" seems to affect the building of
libgallium.a such that when combined with using "-Wl,--no-undefined",
"$(top_builddir)/src/compiler/nir/libnir.la" must be added to
d3dadapter9_la_LIBADD in the d3dadapter9 Makefile.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>