Address external linkage failures in elfutils 0.185:

https://bugs.gentoo.org/794601
  https://sourceware.org/pipermail/elfutils-devel/2021q2/003862.html
Encountered while building within a Spack environment.
This commit is contained in:
Quellyn Snead 2021-09-02 17:00:48 -06:00
parent 284ffe8ba0
commit 76b93e4504
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
https://bugs.gentoo.org/794601
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -3434,7 +3434,7 @@ buffer_pos (Elf_Data *data, const unsigned char *p)
return p - (const unsigned char *) data->d_buf;
}
-inline size_t
+static inline size_t
buffer_left (Elf_Data *data, const unsigned char *p)
{
return (const unsigned char *) data->d_buf + data->d_size - p;

View File

@ -54,6 +54,8 @@ class Elfutils(AutotoolsPackage, SourcewarePackage):
variant('debuginfod', default=False,
description='Enable libdebuginfod support.')
patch('elfutils-0.185-static-inline.patch', when='@0.185')
depends_on('bzip2', type='link', when='+bzip2')
depends_on('xz', type='link', when='+xz')
depends_on('zlib', type='link')