[Mesa-dev] [PATCH] radv: fix include order for installed headers v2

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Wed Jan 18 23:04:23 UTC 2017


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Wed, Jan 18, 2017 at 11:48 PM, Andres Rodriguez <andresx7 at gmail.com> wrote:
> In situations where libdrm_amdgpu and mesa are installed to the same
> location, the mesa installed headers will take precedence over the git
> source headers.
>
> This is due to the AMDGPU_CFLAGS containing the install directory.
>
> This situation can cause build errors if the git version of a header is
> newer than the currently installed version of a header (e.g. git pull
> updates vulkan.h)
>
> Note: using the same install prefix for mesa and libdrm is probably a
> common occurrence since it is described in the radeonBuildHowTo wiki:
> https://www.x.org/wiki/radeonBuildHowTo/
>
> v2: added sign-off
>
> Signed-off-by: Andres Rodriguez <andresx7 at gmail.com>
> ---
>  src/amd/vulkan/Makefile.am | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/amd/vulkan/Makefile.am b/src/amd/vulkan/Makefile.am
> index 4414881..b47109b 100644
> --- a/src/amd/vulkan/Makefile.am
> +++ b/src/amd/vulkan/Makefile.am
> @@ -32,9 +32,6 @@ lib_LTLIBRARIES = libvulkan_radeon.la
>  # The gallium includes are for the util/u_math.h include from main/macros.h
>
>  AM_CPPFLAGS = \
> -       $(AMDGPU_CFLAGS) \
> -       $(VALGRIND_CFLAGS) \
> -       $(DEFINES) \
>         -I$(top_srcdir)/include \
>         -I$(top_builddir)/src \
>         -I$(top_srcdir)/src \
> @@ -48,7 +45,10 @@ AM_CPPFLAGS = \
>         -I$(top_srcdir)/src/mesa \
>         -I$(top_srcdir)/src/mesa/drivers/dri/common \
>         -I$(top_srcdir)/src/gallium/auxiliary \
> -       -I$(top_srcdir)/src/gallium/include
> +       -I$(top_srcdir)/src/gallium/include \
> +       $(AMDGPU_CFLAGS) \
> +       $(VALGRIND_CFLAGS) \
> +       $(DEFINES)
>
>  AM_CFLAGS = \
>         $(VISIBILITY_CFLAGS) \
> --
> 2.9.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list