Mesa (master): mesa: Fix xcb-dri2 link flags leaking into LIBS.

Eric Anholt anholt at kemper.freedesktop.org
Sat Feb 4 21:04:50 UTC 2012


Module: Mesa
Branch: master
Commit: b3c84a80cd7f6d7d6796cb196422c7be44ea47aa
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b3c84a80cd7f6d7d6796cb196422c7be44ea47aa

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Feb  3 05:28:14 2012 +0100

mesa: Fix xcb-dri2 link flags leaking into LIBS.

Fixes the build of builtin_compiler on my 32-bit build where xcb-dri2
is in a custom prefix but the custom prefix flags weren't available.
It shouldn't have been in LIBS anyway.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 configure.ac |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 316c715..e859d4c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1415,8 +1415,10 @@ if test "x$enable_egl" = xyes; then
                 EGL_DRIVER_DRI2=dri2
                 DEFINES="$DEFINES -DHAVE_XCB_DRI2"
                 # workaround a bug in xcb-dri2 generated by xcb-proto 1.6
+		save_LIBS="$LIBS"
                 AC_CHECK_LIB(xcb-dri2, xcb_dri2_connect_alignment_pad, [],
                           [DEFINES="$DEFINES -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN"])
+		LIBS="$save_LIBS"
             fi
 	fi
 




More information about the mesa-commit mailing list