Blame SOURCES/0002-hw-xfree86-Link-libdri3-only-when-DRI3-is-defined.patch

70130e
From 903a058370645ea075ea98d380fd565efb6160c9 Mon Sep 17 00:00:00 2001
70130e
From: Keith Packard <keithp@keithp.com>
70130e
Date: Mon, 4 Nov 2013 19:01:26 -0800
70130e
Subject: [PATCH 2/5] hw/xfree86: Link libdri3 only when DRI3 is defined
70130e
70130e
Don't attempt to link non-existant libraries...
70130e
70130e
Signed-off-by: Keith Packard <keithp@keithp.com>
70130e
---
70130e
 hw/xfree86/Makefile.am | 7 ++++++-
70130e
 1 file changed, 6 insertions(+), 1 deletion(-)
70130e
70130e
diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am
70130e
index eea16a8..485386f 100644
70130e
--- a/hw/xfree86/Makefile.am
70130e
+++ b/hw/xfree86/Makefile.am
70130e
@@ -9,6 +9,11 @@ DRI2_SUBDIR = dri2
70130e
 DRI2_LIB = dri2/libdri2.la
70130e
 endif
70130e
 
70130e
+if DRI3
70130e
+DRI3_BUILDDIR = $(top_builddir)/dri3
70130e
+DRI3_LIB = $(DRI3_BUILDDIR)/libdri3.la
70130e
+endif
70130e
+
70130e
 if XF86UTILS
70130e
 XF86UTILS_SUBDIR = utils
70130e
 endif
70130e
@@ -59,7 +64,7 @@ LOCAL_LIBS = \
70130e
             dixmods/libxorgxkb.la \
70130e
             $(DRI_LIB) \
70130e
             $(DRI2_LIB) \
70130e
-	    $(top_builddir)/dri3/libdri3.la \
70130e
+	    $(DRI3_LIB) \
70130e
 	    $(top_builddir)/miext/sync/libsync.la \
70130e
             $(top_builddir)/mi/libmi.la \
70130e
             $(top_builddir)/os/libos.la
70130e
-- 
70130e
1.8.3.1
70130e