[Mesa-dev] [PATCH] targets/opencl: Fix (static) linking with LLVM

Kai Wasserbäch kai at dev.carbon-project.org
Sun May 18 02:37:36 PDT 2014


Without this, I get linking failures (static linking).

The static linking is sort of required for me, because otherwise Steam and
applications using the Steam runtime regularily fail because my LLVM was
compiled and linked against a newer libgcc_s, libstdc++, etc. and uses
features from those newer versions. And instead of just not starting, my
X starts crashing, whenever libGL fails to load a (32 bit) driver.

Since I hate crashes of X and I don't think Valve/Steam will behave like
a proper distribution soon (rebuilds versus current Debian Testing, since
they base their Steam OS off that), I need a radeonsi which carries its
own LLVM within and doesn't care about what the runtime sets.

Signed-off-by: Kai Wasserbäch <kai at dev.carbon-project.org>
---
 src/gallium/targets/opencl/Makefile.am |    2 ++
 1 file changed, 2 insertions(+)

--- a/src/gallium/targets/opencl/Makefile.am
+++ b/src/gallium/targets/opencl/Makefile.am
@@ -31,6 +31,8 @@ lib at OPENCL_LIBNAME@_la_LIBADD = \
 	-lclangEdit \
 	-lclangLex \
 	-lclangBasic \
+	-lLLVMObjCARCOpts \
+	-lLLVMProfileData \
 	$(LLVM_LIBS)
 
 if HAVE_DRI


More information about the mesa-dev mailing list