[Mesa-dev] [PATCH] build: Install libwayland-egl.so.* symlinks in lib/

Kenneth Graunke kenneth at whitecape.org
Sun Aug 18 18:00:05 PDT 2013


Like we do for all the other libraries.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/egl/wayland/wayland-egl/Makefile.am | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/egl/wayland/wayland-egl/Makefile.am b/src/egl/wayland/wayland-egl/Makefile.am
index 138c170..174d305 100644
--- a/src/egl/wayland/wayland-egl/Makefile.am
+++ b/src/egl/wayland/wayland-egl/Makefile.am
@@ -9,3 +9,11 @@ lib_LTLIBRARIES = libwayland-egl.la
 noinst_HEADERS = wayland-egl-priv.h
 libwayland_egl_la_SOURCES = wayland-egl.c
 libwayland_egl_la_LDFLAGS = -version-info 1
+
+# Provide compatibility with scripts for the old Mesa build system for
+# a while by putting a link to the driver into /lib of the build tree.
+all-local: libwayland-egl.la
+	$(MKDIR_P) $(top_builddir)/$(LIB_DIR);
+	ln -f .libs/libwayland-egl.so.1.0.0 $(top_builddir)/$(LIB_DIR)/libwayland-egl.so.1.0.0
+	ln -sf libwayland-egl.so.1.0.0 $(top_builddir)/$(LIB_DIR)/libwayland-egl.so.1
+	ln -sf libwayland-egl.so.1 $(top_builddir)/$(LIB_DIR)/libwayland-egl.so
-- 
1.8.3.4



More information about the mesa-dev mailing list