From e0b7430eae7d49dc98bac05fe46b511e1a9c7cfd Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Sun, 25 Sep 2022 05:12:54 +0000 Subject: [PATCH] meson: libelf is optional ..otherwise seeing ERROR: C shared or static library 'elf' not found Fixes: c74595ead3f ("radv/r600/clover: Getting libelf to be optional") Signed-off-by: Yiwei Zhang Reviewed-by: Yonggang Luo Part-of: --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index e9d6b777d28..23d84adc0b0 100644 --- a/meson.build +++ b/meson.build @@ -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'