Skip to content

Commit

Permalink
glib: Depend on elfutils instead of libelf where possible
Browse files Browse the repository at this point in the history
The libelf library is antiquated.
The elfutils package is actively maintained and provides its own libelf implementation, which is the standard implementation on Linux.
Since elfutils can not be used everywhere, only use it for supported configurations.
  • Loading branch information
jwillikers committed May 21, 2024
1 parent 9efd5de commit e1b67c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/glib/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def requirements(self):
self.requires("libffi/3.4.4")
self.requires("pcre2/10.42")
if self.options.get_safe("with_elf"):
self.requires("libelf/0.8.13")
if is_apple_os(self) or self.settings.compiler not in ["clang", "gcc"]:
self.requires("libelf/0.8.13")
else:
self.requires("elfutils/0.190")
if self.options.get_safe("with_mount"):
self.requires("libmount/2.39")
if self.options.get_safe("with_selinux"):
Expand Down

0 comments on commit e1b67c7

Please sign in to comment.