From a5445cd6861f7718ce4e2aa46b5658a656ee50bd Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 24 Mar 2012 19:41:20 -0700 Subject: [PATCH] add rtld_global patch --- debian/patches/series | 1 + debian/patches/use_rtld_global | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 debian/patches/series create mode 100644 debian/patches/use_rtld_global diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..d15aa7d --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +use_rtld_global diff --git a/debian/patches/use_rtld_global b/debian/patches/use_rtld_global new file mode 100644 index 0000000..c9a2260 --- /dev/null +++ b/debian/patches/use_rtld_global @@ -0,0 +1,15 @@ +Index: Parallel-MPI-Simple-0.10/Simple.pm +=================================================================== +--- Parallel-MPI-Simple-0.10.orig/Simple.pm 2012-03-24 19:39:57.000000000 -0700 ++++ Parallel-MPI-Simple-0.10/Simple.pm 2012-03-24 19:40:30.000000000 -0700 +@@ -8,6 +8,10 @@ + @ISA = qw(DynaLoader); + $VERSION = '0.10'; + ++# need to use RTLD_GLOBAL for libmpi.so to properly dlopen its ++# submodules ++sub dl_load_flags { 0x01 } ++ + bootstrap Parallel::MPI::Simple; + + # evil, but makes everything MPI_*, which is sort of expected -- 2.39.2