You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
933 B

  1. --- a/gio/meson.build
  2. +++ b/gio/meson.build
  3. @@ -874,20 +874,6 @@ endif
  4. # Dependencies used by executables below
  5. have_libelf = false
  6. -libelf = dependency('libelf', version : '>= 0.8.12', required : false)
  7. -if libelf.found()
  8. - have_libelf = true
  9. -else
  10. - # This fallback is necessary on *BSD. elfutils isn't the only libelf
  11. - # implementation, and *BSD usually includes their own libelf as a system
  12. - # library which doesn't have a corresponding .pc file.
  13. - libelf = cc.find_library('elf', required : false)
  14. - have_libelf = libelf.found()
  15. - have_libelf = have_libelf and cc.has_function('elf_begin', dependencies : libelf)
  16. - have_libelf = have_libelf and cc.has_function('elf_getshdrstrndx', dependencies : libelf)
  17. - have_libelf = have_libelf and cc.has_function('elf_getshdrnum', dependencies : libelf)
  18. - have_libelf = have_libelf and cc.has_header('libelf.h')
  19. -endif
  20. if have_libelf
  21. glib_conf.set('HAVE_LIBELF', 1)