aboutsummaryrefslogtreecommitdiff
path: root/package/x11r7
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2015-08-08 13:59:06 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-08-25 12:28:41 +0200
commit77397b1c72323b8019b94abba7ca03af1aee2c0f (patch)
tree99b3e4d7454609d89ae2dbddf81117f6ba89a763 /package/x11r7
parentd23c4d4f4d6148e7f33c73af86611020a61b8cbb (diff)
downloadbuildroot-77397b1c72323b8019b94abba7ca03af1aee2c0f.tar.gz
buildroot-77397b1c72323b8019b94abba7ca03af1aee2c0f.tar.bz2
package/x11r7/xserver_xorg-server: Add libdrm dependency when dri or dri2 is enabled
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>
Diffstat (limited to 'package/x11r7')
-rw-r--r--package/x11r7/xserver_xorg-server/Config.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/x11r7/xserver_xorg-server/Config.in b/package/x11r7/xserver_xorg-server/Config.in
index f0ec598ff1..8b794b3d24 100644
--- a/package/x11r7/xserver_xorg-server/Config.in
+++ b/package/x11r7/xserver_xorg-server/Config.in
@@ -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,