From: Tom Stellard <[email protected]>
This fixes a crash in glamor when mesa links against static LLVM.
---
src/gallium/targets/egl-static/Makefile.am | 4 ++++
src/gallium/targets/egl-static/egl.link | 3 +++
2 files changed, 7 insertions(+)
create mode 100644 src/gallium/targets/egl-static/egl.link
diff --git a/src/gallium/targets/egl-static/Makefile.am
b/src/gallium/targets/egl-static/Makefile.am
index 0b30aeb..e2ae433 100644
--- a/src/gallium/targets/egl-static/Makefile.am
+++ b/src/gallium/targets/egl-static/Makefile.am
@@ -30,6 +30,10 @@
#
include $(top_srcdir)/src/gallium/Automake.inc
+LINKER_SCRIPT=egl.link
+
+LDFLAGS+=-Wl,$(LINKER_SCRIPT)
+
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: *; };
+};
--
1.8.1.5
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev