]> git.donarmstrong.com Git - libparallel-mpi-simple-perl.git/commitdiff
add rtld_global patch
authorDon Armstrong <don@donarmstrong.com>
Sun, 25 Mar 2012 02:41:20 +0000 (19:41 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sun, 25 Mar 2012 02:41:20 +0000 (19:41 -0700)
debian/patches/series [new file with mode: 0644]
debian/patches/use_rtld_global [new file with mode: 0644]

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..d15aa7d
--- /dev/null
@@ -0,0 +1 @@
+use_rtld_global
diff --git a/debian/patches/use_rtld_global b/debian/patches/use_rtld_global
new file mode 100644 (file)
index 0000000..c9a2260
--- /dev/null
@@ -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