Mesa (master): egl-static: 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: 594fa4a208b138b0b9b24cc8de62e6681ebb8d21
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=594fa4a208b138b0b9b24cc8de62e6681ebb8d21
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Wed Oct 23 16:02:16 2013 -0400
egl-static: Only export necessary symbols v3
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 at dev.carbon-project.or>
---
src/gallium/targets/egl-static/Makefile.am | 2 ++
src/gallium/targets/egl-static/egl.link | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/gallium/targets/egl-static/Makefile.am b/src/gallium/targets/egl-static/Makefile.am
index 0b30aeb..760c477 100644
--- a/src/gallium/targets/egl-static/Makefile.am
+++ b/src/gallium/targets/egl-static/Makefile.am
@@ -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
index 0000000..78d155d
--- /dev/null
+++ b/src/gallium/targets/egl-static/egl.link
@@ -0,0 +1,3 @@
+VERSION {
+{ global: _eglMain; local: *; };
+};
More information about the mesa-commit
mailing list