From abf0529f78121115937a6408523a37711bc26896 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Tue, 12 Jan 2016 09:33:51 +0900 Subject: [PATCH 1/8] configury: append LIBS to OMPI_WRAPPER_EXTRA_LIBS This is required so NAG compiler can build static OpenMPI Thanks Paul Hargrove for the report. (cherry picked from commit open-mpi/ompi@bbed1d4a5f8a4f9c9d0a889657f3b6a174b86fcf) --- config/opal_setup_wrappers.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/opal_setup_wrappers.m4 b/config/opal_setup_wrappers.m4 index 4fe3f18b15d..7e6aec135ca 100644 --- a/config/opal_setup_wrappers.m4 +++ b/config/opal_setup_wrappers.m4 @@ -12,7 +12,7 @@ dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl All rights reserved. dnl Copyright (c) 2006-2010 Oracle and/or its affiliates. All rights reserved. dnl Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved. -dnl Copyright (c) 2015 Research Organization for Information Science +dnl Copyright (c) 2015-2016 Research Organization for Information Science dnl and Technology (RIST). All rights reserved. dnl $COPYRIGHT$ dnl @@ -420,6 +420,7 @@ AC_DEFUN([OPAL_SETUP_WRAPPER_FINAL],[ OMPI_WRAPPER_EXTRA_LIBS="$ompi_mca_wrapper_extra_libs" OPAL_FLAGS_APPEND_UNIQ([OMPI_WRAPPER_EXTRA_LIBS], [$wrapper_extra_libs]) OMPI_WRAPPER_EXTRA_LIBS="$OMPI_WRAPPER_EXTRA_LIBS $with_wrapper_libs" + OPAL_FLAGS_APPEND_UNIQ([OMPI_WRAPPER_EXTRA_LIBS], [$LIBS]) AC_SUBST([OMPI_WRAPPER_EXTRA_LIBS]) AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_LIBS]) From 856ba0c8fb9426f028fb531f23fe92dcbe19bbf1 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Mon, 6 Jun 2016 11:54:12 +0900 Subject: [PATCH 2/8] configury: fix mpifort and oshmemfort wrapper data NAG compiler use gcc (and not ld) as a linker, so in order to pass an option to the linker, the flag is -Wl,-Wl,,