mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
meson: libelf is optional
..otherwise seeing ERROR: C shared or static library 'elf' not found
Fixes: c74595ead3 ("radv/r600/clover: Getting libelf to be optional")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18805>
This commit is contained in:
parent
37900ee2dd
commit
e0b7430eae
1 changed files with 1 additions and 1 deletions
|
|
@ -1935,7 +1935,7 @@ endif
|
|||
|
||||
dep_elf = dependency('libelf', required : false)
|
||||
if not with_platform_windows and not dep_elf.found()
|
||||
dep_elf = cc.find_library('elf')
|
||||
dep_elf = cc.find_library('elf', required : false)
|
||||
endif
|
||||
if dep_elf.found()
|
||||
pre_args += '-DUSE_LIBELF'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue