Blame SOURCES/0001-rpath-hack.patch

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