﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
7786	Don't build all llvm libraries as shared	Armin K	blfs-book@…	"According to [1]:

{{{
BUILD_SHARED_LIBS is only recommended for use by LLVM developers. If you want to build LLVM as a shared library, you should use the LLVM_BUILD_LLVM_DYLIB option.
}}}

I suggest that you replace -DBUILD_SHARED_LIBS=ON with -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON

That will produce one shared library, libLLVM.so, and make all the tools link to it instead of individual, static ones. Note that mesa doesn't correcly detect this kind of shared lib just yet. A sed can be used (taken from Archlinux):

{{{
sed -i 's/LLVM_SO_NAME=.*/LLVM_SO_NAME=LLVM/' configure
}}}

[1] http://llvm.org/docs/CMake.html"	task	closed	normal	7.10	BOOK	SVN	medium	wontfix		
