blob: 2ef9fa9fe4498597e51952af39d5c7df719aab5d [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001Upstream-Status: Submitted [https://gitlab.freedesktop.org/xorg/xserver/merge_requests/22]
2Signed-off-by: Ross Burton <ross.burton@intel.com>
3
4From 5f65a6246fe752764045dd1e38912f1dccec71e4 Mon Sep 17 00:00:00 2001
5From: Ross Burton <ross.burton@intel.com>
6Date: Thu, 20 Sep 2018 20:12:24 +0100
7Subject: [PATCH] xorg-server.m4: just all cflags instead of just sdkdir
8
9Instead of fetching just the sdkdir variable of xorg-server using pkg-config,
10simply get all of the CFLAGS. Aside from completeness, this helps builds in
11sysroots as pkg-config knows what to do with --cflags but doesn't remap
12arbitrary variables.
13
14Signed-off-by: Ross Burton <ross.burton@intel.com>
15---
16 xorg-server.m4 | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/xorg-server.m4 b/xorg-server.m4
20index 18255b91a..195bda5d8 100644
21--- a/xorg-server.m4
22+++ b/xorg-server.m4
23@@ -31,7 +31,7 @@ dnl
24 AC_DEFUN([XORG_DRIVER_CHECK_EXT],[
25 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
26 SAVE_CFLAGS="$CFLAGS"
27- CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
28+ CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
29 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
30 #include "xorg-server.h"
31 #if !defined $1
32--
332.11.0
34