Mesa (master): meson: only require libelf if building radv
Dylan Baker
dbaker at kemper.freedesktop.org
Mon Oct 9 20:57:56 UTC 2017
Module: Mesa
Branch: master
Commit: 97aea7d5078b8b106178186a789e8516edbc8835
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=97aea7d5078b8b106178186a789e8516edbc8835
Author: Dylan Baker <dylan at pnwbakers.com>
Date: Wed Oct 4 11:36:06 2017 -0700
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 at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 5de64acefd..97809e9828 100644
--- a/meson.build
+++ b/meson.build
@@ -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
More information about the mesa-commit
mailing list