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

2017-09-20 Thread Eric Anholt
Daniel Stone  writes:

> Make sure we get the CFLAGS required for building DRI3 into the
> command line.
>
> Signed-off-by: Daniel Stone 

Reviewed-by: Eric Anholt 


signature.asc
Description: PGP signature
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

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

2017-09-20 Thread Daniel Stone
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
-- 
2.14.1

___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel