OSDN Git Service

egl-static: Only export necessary symbols v3
authorTom Stellard <thomas.stellard@amd.com>
Wed, 23 Oct 2013 20:02:16 +0000 (16:02 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 11 Nov 2013 22:21:35 +0000 (17:21 -0500)
This fixes a crash in glamor when mesa links against static 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/egl-static/Makefile.am
src/gallium/targets/egl-static/egl.link [new file with mode: 0644]

index 0b30aeb..760c477 100644 (file)
@@ -30,6 +30,8 @@
 #
 include $(top_srcdir)/src/gallium/Automake.inc
 
+LDFLAGS += -Wl,$(top_srcdir)/src/gallium/targets/egl-static/egl.link
+
 AM_CFLAGS = $(PTHREAD_CFLAGS)
 AM_CPPFLAGS = \
        $(GALLIUM_CFLAGS) \
diff --git a/src/gallium/targets/egl-static/egl.link b/src/gallium/targets/egl-static/egl.link
new file mode 100644 (file)
index 0000000..78d155d
--- /dev/null
@@ -0,0 +1,3 @@
+VERSION {
+{ global: _eglMain; local: *; };
+};