[Webkit-unassigned] [Bug 151559] [CMake] Do not use LLVM static libraries for FTL JIT

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 13 03:23:18 PST 2016


--- Comment #6 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to comment #5)
> OK, my vote is to either fix this or disable FTL again before 2.12. Using
> static libs is not considered acceptable on Linux, and it's causing build
> problems for openSUSE and Gentoo, which don't have LLVM static libs at all;
> no doubt it will be problematic for other distros too.
> openSUSE came up with a rather innovative solution [1] to use
> -DLLVM_CONFIG_EXE at cmake time to pointing cmake to a script that wraps
> llvm-config like so:
> #!/bin/bash
> /usr/bin/llvm-config $1 |sed "s,\\.a,\\.so,g"
> Yuck, but their package is reportedly working without issues, so I doubt the
> static libs were ever really needed. It would be better to use a similar
> wrapper around llvm-config to handle this automagically than to continue
> using static libs.

It's not that easy, this hack works for SUSE because they are building llvm with CMake, so they have a .so for each static library. However, if llvm is built using autotools (like debian and fedora do) what we have is a single .so file. So we need to detect this as well at configure.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160113/f5446bef/attachment.html>

More information about the webkit-unassigned mailing list