Mesa (master): st/egl: Fix udev linkage when egl_dri2 is not build

Kristian Høgsberg krh at kemper.freedesktop.org
Tue May 31 19:15:35 UTC 2011


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

Author: Benjamin Franzke <benjaminfranzke at googlemail.com>
Date:   Tue May 31 11:14:46 2011 +0200

st/egl: Fix udev linkage when egl_dri2 is not build

---

 configure.ac                     |    6 +++---
 src/gallium/targets/egl/Makefile |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index b55473f..510d23f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1202,6 +1202,9 @@ if test "x$enable_egl" = xyes; then
 
         PKG_CHECK_MODULES([LIBUDEV], [libudev > 150],
                           [have_libudev=yes],[have_libudev=no])
+        if test "$have_libudev" = yes; then
+            DEFINES="$DEFINES -DHAVE_LIBUDEV"
+        fi
         if test "$mesa_driver" = dri; then
             # build egl_dri2 when xcb-dri2 is available
             PKG_CHECK_MODULES([XCB_DRI2], [x11-xcb xcb-dri2 xcb-xfixes],
@@ -1210,9 +1213,6 @@ if test "x$enable_egl" = xyes; then
             if test "$have_xcb_dri2" = yes; then
                 EGL_DRIVER_DRI2=dri2
                 DEFINES="$DEFINES -DHAVE_XCB_DRI2"
-                if test "$have_libudev" = yes; then
-                    DEFINES="$DEFINES -DHAVE_LIBUDEV"
-                fi
                 # workaround a bug in xcb-dri2 generated by xcb-proto 1.6
                 AC_CHECK_LIB(xcb-dri2, xcb_dri2_connect_alignment_pad, [],
                           [DEFINES="$DEFINES -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN"])
diff --git a/src/gallium/targets/egl/Makefile b/src/gallium/targets/egl/Makefile
index a455b61..dd566bd 100644
--- a/src/gallium/targets/egl/Makefile
+++ b/src/gallium/targets/egl/Makefile
@@ -52,7 +52,7 @@ egl_LIBS += $(TOP)/src/gallium/winsys/sw/wayland/libws_wayland.a
 egl_LIBS += $(TOP)/src/egl/wayland/wayland-drm/libwayland-drm.a
 endif
 ifneq ($(findstring drm, $(EGL_PLATFORMS)),)
-egl_SYS += $(LIBDRM_LIB)
+egl_SYS += $(LIBUDEV_LIBS) $(LIBDRM_LIB)
 endif
 ifneq ($(findstring fbdev, $(EGL_PLATFORMS)),)
 egl_LIBS += $(TOP)/src/gallium/winsys/sw/fbdev/libfbdev.a




More information about the mesa-commit mailing list