opencl: autotools: Fix linking order for OpenCL target
authorKai Wasserbäch <kai@dev.carbon-project.org>
Tue, 1 May 2018 12:14:46 +0000 (14:14 +0200)
committerJan Vesely <jan.vesely@rutgers.edu>
Tue, 15 May 2018 02:45:01 +0000 (22:45 -0400)
Otherwise the build fails with an undefined reference to
clang::FrontendTimesIsEnabled.

Bugzilla: https://bugs.freedesktop.org/106209
Cc: Jan Vesely <jan.vesely@rutgers.edu>
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Acked-by: Jan Vesely <jan.vesely@rutgers.edu>
Tested-by: Aaron Watry <awatry@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/gallium/targets/opencl/Makefile.am

index de68a93ad537109ec9002653ad7e16c2a1c6d3c8..f0e1de7797c529d8de0714dae720b1d186b4e035 100644 (file)
@@ -23,11 +23,10 @@ lib@OPENCL_LIBNAME@_la_LIBADD = \
        $(LIBELF_LIBS) \
        $(DLOPEN_LIBS) \
        -lclangCodeGen \
-       -lclangFrontendTool \
        -lclangFrontend \
+       -lclangFrontendTool \
        -lclangDriver \
        -lclangSerialization \
-       -lclangCodeGen \
        -lclangParse \
        -lclangSema \
        -lclangAnalysis \