From: Dylan Baker Date: Wed, 4 Oct 2017 22:33:18 +0000 (-0700) Subject: make: Don't traverse backwards through include directories. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b1bb6ee103a79de11aa4941ccbcd34f0a158276;p=mesa.git make: Don't traverse backwards through include directories. Traversing back through includes is bad idea and should be avoided. In the case here - indirect_size.h is located in the build directory $(top_builddir)/src/glx/. v3: - Update commit message with message provided by Emil Signed-off-by: Dylan Baker Reviewed-by: Emil Velikov Reviewed-by: Eric Anholt --- diff --git a/src/glx/tests/Makefile.am b/src/glx/tests/Makefile.am index a41759b863e..aab93e732a3 100644 --- a/src/glx/tests/Makefile.am +++ b/src/glx/tests/Makefile.am @@ -5,6 +5,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src \ -I$(top_srcdir)/src/mapi \ -I$(top_srcdir)/src/mesa \ + -I$(top_builddir)/src/glx \ -I$(top_srcdir)/src/glx \ -I$(top_srcdir)/include \ -I$(top_srcdir)/include/GL/internal \ diff --git a/src/glx/tests/enum_sizes.cpp b/src/glx/tests/enum_sizes.cpp index 20fc75879c0..6119dcbc43a 100644 --- a/src/glx/tests/enum_sizes.cpp +++ b/src/glx/tests/enum_sizes.cpp @@ -36,7 +36,7 @@ #include #include extern "C" { -#include "../indirect_size.h" +#include "indirect_size.h" } TEST(ValidEnumSizes, CallLists)