[PATCH xserver 1/2] Build: Use dri3proto/libdrm CFLAGS

Daniel Stone daniels at collabora.com
Wed Sep 20 14:22:12 UTC 2017


Make sure we get the CFLAGS required for building DRI3 into the
command line.

Signed-off-by: Daniel Stone <daniels at collabora.com>
---
 configure.ac     | 1 +
 dri3/meson.build | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index f13a54ab9..ec98f52c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1197,6 +1197,7 @@ PKG_CHECK_MODULES([DRI3PROTO], $DRI3PROTO,
 
 case "$DRI3,$HAVE_DRI3PROTO" in
 	yes,yes | auto,yes)
+		REQUIRED_MODULES="$REQUIRED_MODULES dri3proto"
 		;;
 	yes,no)
 		AC_MSG_ERROR([DRI3 requested, but dri3proto not found.])
diff --git a/dri3/meson.build b/dri3/meson.build
index 3d05020e6..0deec32aa 100644
--- a/dri3/meson.build
+++ b/dri3/meson.build
@@ -9,7 +9,7 @@ if build_dri3
     libxserver_dri3 = static_library('libxserver_dri3',
         srcs_dri3,
         include_directories: inc,
-        dependencies: common_dep,
+        dependencies: [ common_dep, libdrm_dep ],
         c_args: '-DHAVE_XORG_CONFIG_H'
         )
 endif
-- 
2.14.1



More information about the xorg-devel mailing list