Mesa (master): pipe-loader: Only export necessary symbols v3

Tom Stellard tstellar at kemper.freedesktop.org
Mon Nov 11 22:30:22 UTC 2013


Module: Mesa
Branch: master
Commit: 6d6c749215739d0b5f5143dd00a782082b3d03a2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6d6c749215739d0b5f5143dd00a782082b3d03a2

Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Wed Oct 23 15:35:45 2013 -0400

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 at dev.carbon-project.or>

---

 src/gallium/targets/pipe-loader/Makefile.am |    2 ++
 src/gallium/targets/pipe-loader/pipe.link   |    3 +++
 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 e6772b8..970ff0e 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 0000000..1c98da6
--- /dev/null
+++ b/src/gallium/targets/pipe-loader/pipe.link
@@ -0,0 +1,3 @@
+VERSION {
+	{global: driver_descriptor; local: *;  };
+};




More information about the mesa-commit mailing list