From: Don Armstrong Date: Sun, 25 Mar 2012 02:41:20 +0000 (-0700) Subject: add rtld_global patch X-Git-Url: https://git.donarmstrong.com/?p=libparallel-mpi-simple-perl.git;a=commitdiff_plain;h=a5445cd6861f7718ce4e2aa46b5658a656ee50bd;ds=sidebyside add rtld_global patch --- 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