From 86a89dd6020f59964c0e924acbfae9d5a51e3148 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 20 Sep 2017 07:22:12 -0700 Subject: [PATCH] Build: Use dri3proto/libdrm CFLAGS Make sure we get the CFLAGS required for building DRI3 into the command line. Signed-off-by: Daniel Stone --- 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