elfutils: option to install elf.h header file (#10185)
* elfutils: option to install elf.h header file Add variant 'elfh' (default False) to install the elf.h header file to the include directory. This provides access to a newer version of elf.h and allows an elf application to build with the same elf.h that libelf.so was built with. Add version 0.175. * Drop the variant 'elfh' and always install elf.h instead.
This commit is contained in:
parent
b4dc73bed4
commit
1b991f9385
@ -17,11 +17,11 @@ class Elfutils(AutotoolsPackage):
|
|||||||
version of elfutils."""
|
version of elfutils."""
|
||||||
|
|
||||||
homepage = "https://fedorahosted.org/elfutils/"
|
homepage = "https://fedorahosted.org/elfutils/"
|
||||||
|
url = "https://sourceware.org/elfutils/ftp/0.168/elfutils-0.168.tar.bz2"
|
||||||
url = "https://sourceware.org/elfutils/ftp/0.168/elfutils-0.168.tar.bz2"
|
|
||||||
list_url = "https://sourceware.org/elfutils/ftp"
|
list_url = "https://sourceware.org/elfutils/ftp"
|
||||||
list_depth = 1
|
list_depth = 1
|
||||||
|
|
||||||
|
version('0.175', '9a02b0382b78cc2d515fb950275d4c02')
|
||||||
version('0.174', '48bec24c0c8b2c16820326956dff9378')
|
version('0.174', '48bec24c0c8b2c16820326956dff9378')
|
||||||
version('0.173', '35decb1ebfb90d565e4c411bee4185cc')
|
version('0.173', '35decb1ebfb90d565e4c411bee4185cc')
|
||||||
version('0.170', '03599aee98c9b726c7a732a2dd0245d5')
|
version('0.170', '03599aee98c9b726c7a732a2dd0245d5')
|
||||||
@ -32,7 +32,7 @@ class Elfutils(AutotoolsPackage):
|
|||||||
variant('bzip2', default=False,
|
variant('bzip2', default=False,
|
||||||
description='Support bzip2 compressed sections.')
|
description='Support bzip2 compressed sections.')
|
||||||
variant('xz', default=False,
|
variant('xz', default=False,
|
||||||
description='Support xz compressed sections.')
|
description='Support xz (lzma) compressed sections.')
|
||||||
|
|
||||||
# Native language support from libintl.
|
# Native language support from libintl.
|
||||||
variant('nls', default=True,
|
variant('nls', default=True,
|
||||||
@ -87,6 +87,11 @@ def configure_args(self):
|
|||||||
|
|
||||||
return args
|
return args
|
||||||
|
|
||||||
|
# Install elf.h to include directory.
|
||||||
|
@run_after('install')
|
||||||
|
def install_elfh(self):
|
||||||
|
install(join_path('libelf', 'elf.h'), self.prefix.include)
|
||||||
|
|
||||||
# Provide location of libelf.so to match libelf.
|
# Provide location of libelf.so to match libelf.
|
||||||
@property
|
@property
|
||||||
def libs(self):
|
def libs(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user