Blame SOURCES/0001-rpath-hack.patch

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