<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Apr 14, 2013 at 12:56 PM, Brecht Van Lommel <span dir="ltr">&lt;<a href="mailto:brechtvanlommel@pandora.be" target="_blank">brechtvanlommel@pandora.be</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">That&#39;s seems reasonable, I&#39;ve attached a patch which tries to<br>
implement it. Could you test if it works on your system?<br></blockquote><div><br></div>I didn&#39;t actually test it but it looks like your patch will fail if the static libs are installed and LLVM_STATIC == OFF since it only looks for the dynamic libs if it can&#39;t find the static ones.<br>
<br>Attached is a patch that adds a WITH_LLVM_STATIC option (defaults to ON so as to not break the other systems) and only checks 
for one of the dynamic/static libs so it&#39;ll fail if the correct one isn&#39;t 
found. Might also be a good idea to do a mark_as_advanced(WITH_LLVM_STATIC) so the win/apple folks aren&#39;t tempted to mess with it, dunno?<br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

Also, just adding the llvm-static package may not be the solution, OSL<br>
needs to be linked with the same static/dynamic library. I&#39;m not sure<br>
how that would be ensured at the level of linux distribution packages.<br></blockquote><br></div><div class="gmail_quote">That&#39;s actually how this all started... Fedora was trying to upgrade llvm but my installed OSL version was built against the old version so I had to manually upgrade llvm on the OpenSuse Build Service which then broke building blender due to the llvm-static thing.<br>
</div><div class="gmail_quote"><br></div><div class="gmail_quote"></div><div class="gmail_quote">Dan<br></div></div></div>