meson: only require libelf if building radv
authorDylan Baker <dylan@pnwbakers.com>
Wed, 4 Oct 2017 18:36:06 +0000 (11:36 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 9 Oct 2017 20:42:43 +0000 (13:42 -0700)
And add a todo about clover, r600, and radeonsi, which also need libelf.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
meson.build

index 5de64acefd6e94a239e5f4ca51dce16166732fa8..97809e982891bf6074040f3d3ea0f858edeaee11 100644 (file)
@@ -288,7 +288,7 @@ dep_thread = dependency('threads')
 pre_args += '-DHAVE_PTHREAD'
 dep_elf = dependency('libelf', required : false)
 if not dep_elf.found()
-  dep_elf = cc.find_library('elf')
+  dep_elf = cc.find_library('elf', required : with_amd_vk) # TODO: clover, r600, radeonsi
 endif
 dep_expat = dependency('expat')
 # this only exists on linux so either this is linux and it will be found, or