package/x11r7/xserver_xorg-server: Add libdrm dependency when dri or dri2 is enabled
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sat, 8 Aug 2015 11:59:06 +0000 (13:59 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 25 Aug 2015 10:28:41 +0000 (12:28 +0200)
Fixes compile error using this defconfig
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_XORG7=y
BR2_PACKAGE_XSERVER_XORG_SERVER=y
BR2_PACKAGE_XPROTO_DRI2PROTO=y

drmVersionPtr is referenced not only in hw/xfree86/dri2/dri2.c
but also in hw/xfree86/dri/dri.c.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/x11r7/xserver_xorg-server/Config.in

index f0ec598ff14d25453ef28257570614728e75225c..8b794b3d2468cc42c05cab76f836b64812f329e8 100644 (file)
@@ -92,6 +92,8 @@ choice
 
 config BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR
        bool "Modular X.org"
+       select BR2_PACKAGE_LIBDRM if (BR2_PACKAGE_XPROTO_XF86DRIPROTO || \
+               BR2_PACKAGE_XPROTO_DRI2PROTO)
        depends on BR2_INSTALL_LIBSTDCPP
        help
          This variant of the X.org server is the full-blown variant,