From 3f6c409164410a30e01dae5c791aa80656e30bf8 Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Tue, 20 Dec 2005 00:50:47 +0000 Subject: [PATCH] * Need to specify link order to make sure we grab the right mmap This commit was SVN r8556. --- opal/mca/memory/darwin/configure.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opal/mca/memory/darwin/configure.m4 b/opal/mca/memory/darwin/configure.m4 index a4bb6069c5..b73bbd6608 100644 --- a/opal/mca/memory/darwin/configure.m4 +++ b/opal/mca/memory/darwin/configure.m4 @@ -66,7 +66,7 @@ AC_DEFUN([MCA_memory_darwin_CONFIG],[ AS_IF([test "$memory_darwin_happy" = "yes"], [# Yes, we really do want to screw with LDFLAGS here... - LDFLAGS="$LDFLAGS -Wl,-multiply_defined,suppress" + LDFLAGS="$LDFLAGS -Wl,-u,_munmap -Wl,-multiply_defined,suppress" memory_darwin_WRAPPER_EXTRA_LDFLAGS="-Wl,-u,_munmap -Wl,-multiply_defined,suppress" $1], [$2]) ])