455d814
From 2489f2f38eb32d9dd03718a36cbdbdf13d2f8b9b Mon Sep 17 00:00:00 2001
455d814
From: Adam Jackson <ajax@redhat.com>
455d814
Date: Thu, 12 Nov 2015 11:10:11 -0500
455d814
Subject: [PATCH] rpath hack
455d814
455d814
Normally, rpath is undesirable.  But for the X server we _know_ we need
455d814
Mesa's libGL, which will always be in %{_libdir}, and not any third-party
455d814
libGL that may be configured using ld.so.conf.
455d814
455d814
---
455d814
 configure.ac       | 1 +
455d814
 1 files changed, 1 insertions(+), 0 deletion(-)
455d814
455d814
diff --git a/configure.ac b/configure.ac
455d814
index fa15a2d..a5af1e0 100644
455d814
--- a/configure.ac
455d814
+++ b/configure.ac
455d814
@@ -1261,6 +1261,7 @@ AM_CONDITIONAL(GLX, test "x$GLX" = xyes)
455d814
 
455d814
 AM_CONDITIONAL(HASHTABLE, test "x$HASHTABLE" = xyes)
455d814
 
455d814
+GLX_SYS_LIBS="$GLX_SYS_LIBS -Wl,-rpath=\$(libdir)"
455d814
 AC_SUBST([GLX_DEFINES])
455d814
 AC_SUBST([GLX_SYS_LIBS])