summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-10-23 15:35:45 -0400
committerIan Romanick <ian.d.romanick@intel.com>2013-11-15 13:39:37 -0800
commit8af132fca9308913235f65a3bd34681a813f409b (patch)
treecd4c06355c8b9af664f07c6a3519175b7b20c33d /src/gallium
parentade312cd8a42c0ccb37c91d02c88e0a5672ded9b (diff)
pipe-loader: Only export necessary symbols v3
This makes it possible to use clover with statically linked LLVM. v2: - Inline LINKER_SCRIPT variable v3: Kai Wasserbäch - Fix out out-of-tree-builds Tested-by: Kai Wasserbäch <kai@dev.carbon-project.or> (cherry picked from commit 6d6c749215739d0b5f5143dd00a782082b3d03a2)
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/targets/pipe-loader/Makefile.am2
-rw-r--r--src/gallium/targets/pipe-loader/pipe.link3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/targets/pipe-loader/Makefile.am b/src/gallium/targets/pipe-loader/Makefile.am
index e6772b8e308..970ff0ec3f2 100644
--- a/src/gallium/targets/pipe-loader/Makefile.am
+++ b/src/gallium/targets/pipe-loader/Makefile.am
@@ -22,6 +22,8 @@
include $(top_srcdir)/src/gallium/Automake.inc
+LDFLAGS += -Wl,$(top_srcdir)/src/gallium/targets/pipe-loader/pipe.link
+
AM_CPPFLAGS = \
$(GALLIUM_CFLAGS) \
-I$(top_srcdir)/include \
diff --git a/src/gallium/targets/pipe-loader/pipe.link b/src/gallium/targets/pipe-loader/pipe.link
new file mode 100644
index 00000000000..1c98da67f23
--- /dev/null
+++ b/src/gallium/targets/pipe-loader/pipe.link
@@ -0,0 +1,3 @@
+VERSION {
+ {global: driver_descriptor; local: *; };
+};