diff --git a/var/spack/repos/builtin/packages/libdwarf/package.py b/var/spack/repos/builtin/packages/libdwarf/package.py index fe131a842c..153b243e98 100644 --- a/var/spack/repos/builtin/packages/libdwarf/package.py +++ b/var/spack/repos/builtin/packages/libdwarf/package.py @@ -52,6 +52,11 @@ class Libdwarf(Package): parallel = False + + def patch(self): + filter_file(r'^typedef struct Elf Elf;$', '', 'libdwarf/libdwarf.h.in') + + def install(self, spec, prefix): # elfutils contains a dwarf.h that conflicts with libdwarf's