summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/opencl
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-04-04 23:37:15 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2014-05-02 21:48:27 +0100
commitf743670b9a10ab296a5e90b866d1c766d44cf98d (patch)
treea21bd80df84aeee9ecba7f623c0853e430fd5a5e /src/gallium/targets/opencl
parent7b7944ee1cedeaf13867974eb8f217690726c245 (diff)
downloadexternal_mesa3d-f743670b9a10ab296a5e90b866d1c766d44cf98d.zip
external_mesa3d-f743670b9a10ab296a5e90b866d1c766d44cf98d.tar.gz
external_mesa3d-f743670b9a10ab296a5e90b866d1c766d44cf98d.tar.bz2
targets/opencl: hide all the exported llvm/clang mayhem... hopefully
Both llvm and clang polute the exported symbol table, as soon as we try to link with either one. Other than those two everything else looks good (clean). Cc: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'src/gallium/targets/opencl')
-rw-r--r--src/gallium/targets/opencl/Makefile.am1
-rw-r--r--src/gallium/targets/opencl/opencl.sym6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/targets/opencl/Makefile.am b/src/gallium/targets/opencl/Makefile.am
index 29909da..ba45aee 100644
--- a/src/gallium/targets/opencl/Makefile.am
+++ b/src/gallium/targets/opencl/Makefile.am
@@ -6,6 +6,7 @@ lib@OPENCL_LIBNAME@_la_LDFLAGS = \
$(LLVM_LDFLAGS) \
-no-undefined \
-version-number 1:0 \
+ -Wl,--version-script=$(top_srcdir)/src/gallium/targets/opencl/opencl.sym \
$(GC_SECTIONS) \
$(LD_NO_UNDEFINED)
diff --git a/src/gallium/targets/opencl/opencl.sym b/src/gallium/targets/opencl/opencl.sym
new file mode 100644
index 0000000..ee8aacf
--- /dev/null
+++ b/src/gallium/targets/opencl/opencl.sym
@@ -0,0 +1,6 @@
+{
+ global:
+ cl*;
+ local:
+ *;
+};