<div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 28, 2014 at 2:37 PM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@gmail.com" target="_blank">chandlerc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">If you have been using this variable, please reply with how you have been using it.<div><br></div><div>As far as I can tell, it would only have worked if you were only using LLVM by itself without using Clang or any other LLVM projects. And even then, it would have produced an llvm-config binary that lied blatantly about where libraries were installed. So if anyone has managed to use this variable successfully, I'd love to know how.</div><div><br></div></div></blockquote><div><br></div><div>Using it successfully with an awful hack like this:</div><div><br></div><div><div>%if "%{_lib}" == "lib64"</div><div># Nasty hardcoded path</div><div>sed -i s,CLANG_RESOURCE_DIR,'"../lib64/clang/%{_release_version}"',g tools/clang/lib/Driver/Driver.cpp</div><div>sed -i s,"/lib/LLVMgold","/lib64/LLVMgold",g tools/clang/lib/Driver/Tools.cpp</div><div>sed -i s,"}lib{","}lib64{",g tools/clang/test/Preprocessor/iwithprefix.c</div><div>sed -i s,'$ORIGIN/../lib','$ORIGIN/../lib64',g CMakeLists.txt</div><div>%endif</div><div><br></div><div>sed -i s,LLVM_LIBDIR,%{_lib}, tools/clang/lib/Driver/Driver.cpp</div></div><div><br></div><div> Thanks for trying to fix this mess.</div><div><br></div></div></div></div>