[Mesa-dev] [PATCH] nouveau/build: Fix build failures when drm is not in /usr/include.
Matt Turner
mattst88 at gmail.com
Tue Jan 22 10:59:41 PST 2013
On Tue, Jan 22, 2013 at 10:35 AM, <jfonseca at vmware.com> wrote:
> From: José Fonseca <jfonseca at vmware.com>
>
> Fixes failures to include libdrm/nouveau.h when drm is not installed in
> /usr/include.
> ---
> src/gallium/drivers/nv30/Makefile.am | 3 ++-
> src/gallium/drivers/nv50/Makefile.am | 3 ++-
> src/gallium/drivers/nvc0/Makefile.am | 3 ++-
> 3 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/drivers/nv30/Makefile.am b/src/gallium/drivers/nv30/Makefile.am
> index 668a8b2..e7d1983 100644
> --- a/src/gallium/drivers/nv30/Makefile.am
> +++ b/src/gallium/drivers/nv30/Makefile.am
> @@ -28,6 +28,7 @@ noinst_LTLIBRARIES = libnv30.la
> AM_CPPFLAGS = \
> -I$(top_srcdir)/src/gallium/drivers \
> -I$(top_srcdir)/include \
> - $(GALLIUM_CFLAGS)
> + $(GALLIUM_CFLAGS) \
> + $(NOUVEAU_CFLAGS)
>
> libnv30_la_SOURCES = $(C_SOURCES)
> diff --git a/src/gallium/drivers/nv50/Makefile.am b/src/gallium/drivers/nv50/Makefile.am
> index 93eeb1f..58c26ef 100644
> --- a/src/gallium/drivers/nv50/Makefile.am
> +++ b/src/gallium/drivers/nv50/Makefile.am
> @@ -28,6 +28,7 @@ noinst_LTLIBRARIES = libnv50.la
> AM_CPPFLAGS = \
> -I$(top_srcdir)/src/gallium/drivers \
> -I$(top_srcdir)/include \
> - $(GALLIUM_CFLAGS)
> + $(GALLIUM_CFLAGS) \
> + $(NOUVEAU_CFLAGS)
>
> libnv50_la_SOURCES = $(C_SOURCES) $(CPP_SOURCES)
> diff --git a/src/gallium/drivers/nvc0/Makefile.am b/src/gallium/drivers/nvc0/Makefile.am
> index 6a245af..45e5a63 100644
> --- a/src/gallium/drivers/nvc0/Makefile.am
> +++ b/src/gallium/drivers/nvc0/Makefile.am
> @@ -28,6 +28,7 @@ noinst_LTLIBRARIES = libnvc0.la
> AM_CPPFLAGS = \
> -I$(top_srcdir)/src/gallium/drivers \
> -I$(top_srcdir)/include \
> - $(GALLIUM_CFLAGS)
> + $(GALLIUM_CFLAGS) \
> + $(NOUVEAU_CFLAGS)
>
> libnvc0_la_SOURCES = $(C_SOURCES) $(CPP_SOURCES)
> --
> 1.7.9.5
Reviewed-by: Matt Turner <mattst88 at gmail.com>
More information about the mesa-dev
mailing list