From 0fc75952349db6aaab2692cfde156ea9bde96989 Mon Sep 17 00:00:00 2001 Message-Id: <0fc75952349db6aaab2692cfde156ea9bde96989.1525176601.git.kai@dev.carbon-project.org> From: =?UTF-8?q?Kai=20Wasserb=C3=A4ch?= Date: Tue, 1 May 2018 14:06:22 +0200 Subject: [PATCH] opencl: autotools: Fix linking order for OpenCL target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: mesa-dev@lists.freedesktop.org Otherwise the build fails with an undefined reference to clang::FrontendTimesIsEnabled. Bugzilla: https://bugs.freedesktop.org/106209 Cc: mesa-stable@lists.freedesktop.org Cc: Jan Vesely Signed-off-by: Kai Wasserbäch --- Hey, this patch fixes a FTBFS for me with recent LLVM/Clang 7 revisions from upstream's SVN (I use the packages from apt.llvm.org). If you accept it, please commit it for me, I do not have commit access. The CC to stable can be dropped, if stable branches are not to be expected to be buildable with LLVM/Clang from SVN. Thank you in advance for considering this patch. Cheers, Kai src/gallium/targets/opencl/Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/targets/opencl/Makefile.am b/src/gallium/targets/opencl/Makefile.am index de68a93ad5..f0e1de7797 100644 --- a/src/gallium/targets/opencl/Makefile.am +++ b/src/gallium/targets/opencl/Makefile.am @@ -23,11 +23,10 @@ lib@OPENCL_LIBNAME@_la_LIBADD = \ $(LIBELF_LIBS) \ $(DLOPEN_LIBS) \ -lclangCodeGen \ - -lclangFrontendTool \ -lclangFrontend \ + -lclangFrontendTool \ -lclangDriver \ -lclangSerialization \ - -lclangCodeGen \ -lclangParse \ -lclangSema \ -lclangAnalysis \ -- 2.17.0