summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/libsigsegv/package.py1
-rw-r--r--var/spack/repos/builtin/packages/libsigsegv/ppc.patch10
2 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libsigsegv/package.py b/var/spack/repos/builtin/packages/libsigsegv/package.py
index c9ceb87d47..fb00c231b3 100644
--- a/var/spack/repos/builtin/packages/libsigsegv/package.py
+++ b/var/spack/repos/builtin/packages/libsigsegv/package.py
@@ -22,6 +22,7 @@ class Libsigsegv(AutotoolsPackage, GNUMirrorPackage):
version("2.10", sha256="8460a4a3dd4954c3d96d7a4f5dd5bc4d9b76f5754196aa245287553b26d2199a")
patch("patch.new_config_guess", when="@2.10")
+ patch('ppc.patch')
def configure_args(self):
return ["--enable-shared"]
diff --git a/var/spack/repos/builtin/packages/libsigsegv/ppc.patch b/var/spack/repos/builtin/packages/libsigsegv/ppc.patch
new file mode 100644
index 0000000000..75e10a45fe
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libsigsegv/ppc.patch
@@ -0,0 +1,10 @@
+--- libsigsegv-2.12/src/fault-linux-powerpc.h.old 2017-03-04 15:28:15.000000000 +0000
++++ libsigsegv-2.12/src/fault-linux-powerpc.h 2020-05-11 21:49:56.190783142 +0000
+@@ -33,6 +33,6 @@
+ # if 0
+ # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.regs->gpr[1]
+ # else
+-# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1]
++# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.gregs[1]
+ # endif
+ #endif