mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 13:50:09 +01:00
meson: look for libelf as a library if there is no pkgconfig
Required for older versions of libelf that don't have a pkgconfig file. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
9d9a46d4ef
commit
cc4f587307
1 changed files with 4 additions and 1 deletions
|
|
@ -286,7 +286,10 @@ endif
|
|||
dep_zlib = dependency('zlib', version : '>= 1.2.3')
|
||||
dep_thread = dependency('threads')
|
||||
pre_args += '-DHAVE_PTHREAD'
|
||||
dep_elf = dependency('libelf')
|
||||
dep_elf = dependency('libelf', required : false)
|
||||
if not dep_elf.found()
|
||||
dep_elf = cc.find_library('elf')
|
||||
endif
|
||||
dep_expat = dependency('expat')
|
||||
# this only exists on linux so either this is linux and it will be found, or
|
||||
# its not linux and and wont
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue