[Mesa-dev] [PATCH] r600: fix compilation error without amdgpu

Marc Dietrich marvin24 at gmx.de
Mon May 22 09:37:31 UTC 2017


This fixes the following compilation error when amdgpu is not selected.

  CC       common/common_libamd_common_la-ac_gpu_info.lo
In file included from common/ac_gpu_info.c:26:0:
common/ac_gpu_info.h:31:10: fatal error: amdgpu.h: No such file or directory
 #include <amdgpu.h>
          ^~~~~~~~~~
compilation terminated.

Signed-off-by: Marc Dietrich <marvin24 at gmx.de>
---
 src/amd/Makefile.common.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/Makefile.common.am b/src/amd/Makefile.common.am
index dff461c35d..677fd52975 100644
--- a/src/amd/Makefile.common.am
+++ b/src/amd/Makefile.common.am
@@ -26,6 +26,7 @@ COMMON_LIBS = common/libamd_common.la
 # TODO cleanup these
 common_libamd_common_la_CPPFLAGS = \
 	$(AMDGPU_CFLAGS) \
+	$(RADEON_CFLAGS) \
 	$(VALGRIND_CFLAGS) \
 	$(DEFINES) \
 	-I$(top_srcdir)/include \
-- 
2.12.2



More information about the mesa-dev mailing list