<div dir="ltr"><div>What we do to avoid this problem is rename the lib to something else. No system conflict and problem averted. It should be a trivial cmake change.<br><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 24, 2017 at 11:32 AM, Zion Nimchuk via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hi all!</p>
<p>I'm stumped. I'm a contributor to an Open Source PS3 emulator. We
use LLVM to pre-compile the code, instead of just interpreting it
at runtime like most emulators do. Website here: <a href="https://github.com/RPCS3/rpcs3/" target="_blank">https://github.com/RPCS3/<wbr>rpcs3/ </a></p>
<p>We currently have support for Windows, Linux and BSD. Currently,
we only provide builds for Windows users, and are interested in
providing builds for linux users via AppImages.<br>
</p>
<p>The problem is that we use OpenGL or Vulkan to render the
graphics, and if the driver is using Mesa, Mesa tries to bring
along LLVM, and then we get a nasty "CommandLine Error: Option
'help-list' registered more than once!"<br>
</p>
<p>We previously just linked LLVM statically, and to remedy the
error mentioned above, we just switched to linking LLVM
dynamically.</p>
<p>This starts getting messy when we start sending out binaries.
Most distros ares still stuck on LLVM 3.x, and we're using LLVM 4.
If we just package the LLVM 4 libs with the binary, then mesa
tries to load 3.x and llvm tries to load 4.x. Not good.</p>
<p><br>
</p>
<p>The only solution we've come up with is to provide a modified
version of LLVM with the binary build that somehow hides itself.
Can anyone show me what code I would need to modify in order to
make this work? <br>
If you do have a better solution, please mention it.</p>
<p><br>
</p>
<p>Thanks, Zion Nimchuk<br>
</p>
</div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>