<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 23, 2016, at 1:44 PM, Vitaly Buka via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_msg">Hi all,</div><div class="gmail_msg"><br class=""></div><div class="gmail_msg">Is it possible to add zlib source code into llvm repo? Any advice on how to do so?</div><div class="gmail_msg"><br class=""></div><div class="gmail_msg">I'd like to setup build of symbolizer as a static library with no external dependencies except libc. </div><div class="gmail_msg">Similar to <a href="https://github.com/google/sanitizers/blob/master/address-sanitizer/internal_symbolizer/howto" class="cremed">https://github.com/google/sanitizers/blob/master/address-sanitizer/internal_symbolizer/howto</a>.</div><div class="gmail_msg">Then the library can be linked into sanitized program and avoid dependency on standalone llvm-symbolizer tool.</div><div class="gmail_msg"><br class=""></div><div class="gmail_msg">Out solution uses LTO and internalize everything but symbolizer API, so we have no symbol conflicts with instrumented binary. <br class=""></div><div class="gmail_msg">For LTO we need zlib in source code.</div></div></div></blockquote></div><br class=""><div class="">This is not clear to me.</div><div class=""><br class=""></div><div class="">It seems that what you want ultimately is a build where zlib would be LTO together with your program?</div><div class="">Assuming this is correct, you don’t need the source code for zlib, but you need a static archive of zlib build for LTO.</div><div class="">(What may be missing, is the ability to the LLVM build system to select a static zlib archive to link to?)</div><div class=""><br class=""></div><div class="">— </div><div class="">Mehdi</div><div class=""><br class=""></div></body></html>