pipe-loader: Only export necessary symbols v3
authorTom Stellard <thomas.stellard@amd.com>
Wed, 23 Oct 2013 19:35:45 +0000 (15:35 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 11 Nov 2013 22:21:34 +0000 (17:21 -0500)
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>
src/gallium/targets/pipe-loader/Makefile.am
src/gallium/targets/pipe-loader/pipe.link [new file with mode: 0644]

index e6772b8e3083cc6f6cebc2a5f86cd82ef6a58cff..970ff0ec3f2e67b1e00258032a14c0eca0886465 100644 (file)
@@ -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 (file)
index 0000000..1c98da6
--- /dev/null
@@ -0,0 +1,3 @@
+VERSION {
+       {global: driver_descriptor; local: *;  };
+};