meson: only require libelf if building radv
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>
This commit is contained in:
@@ -288,7 +288,7 @@ dep_thread = dependency('threads')
|
|||||||
pre_args += '-DHAVE_PTHREAD'
|
pre_args += '-DHAVE_PTHREAD'
|
||||||
dep_elf = dependency('libelf', required : false)
|
dep_elf = dependency('libelf', required : false)
|
||||||
if not dep_elf.found()
|
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
|
endif
|
||||||
dep_expat = dependency('expat')
|
dep_expat = dependency('expat')
|
||||||
# this only exists on linux so either this is linux and it will be found, or
|
# this only exists on linux so either this is linux and it will be found, or
|
||||||
|
Reference in New Issue
Block a user