From 2ff78c848136644624652fb0e799f714d2f38b95 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Mon, 24 Sep 2018 17:37:28 -0400 Subject: [PATCH 1/2] README: Add note about --with-foo and RPATH Specifically mention our intended behavior about /usr and /usr/lib (and why we don't add /usr/lib[64] and /usr/local/lib[64] to RPATH). Signed-off-by: Jeff Squyres (cherry picked from commit 9367440e3210cf2bfae33d3c72411ab8b9fa6622) --- README | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README b/README index 6ae92373867..362b1dc9a8f 100644 --- a/README +++ b/README @@ -8,7 +8,7 @@ Copyright (c) 2004-2008 High Performance Computing Center Stuttgart, University of Stuttgart. All rights reserved. Copyright (c) 2004-2007 The Regents of the University of California. All rights reserved. -Copyright (c) 2006-2017 Cisco Systems, Inc. All rights reserved. +Copyright (c) 2006-2018 Cisco Systems, Inc. All rights reserved. Copyright (c) 2006-2011 Mellanox Technologies. All rights reserved. Copyright (c) 2006-2012 Oracle and/or its affiliates. All rights reserved. Copyright (c) 2007 Myricom, Inc. All rights reserved. @@ -761,6 +761,22 @@ Open MPI is unable to find relevant support for , configure will assume that it was unable to provide a feature that was specifically requested and will abort so that a human can resolve out the issue. +Additionally, if a search directory is specified in the form +--with-=, Open MPI will: + +1. Search for 's header files in /include. +2. Search for 's library files in /lib, and if they are not + found there, search again in /lib64. +3. If both the relevant header files and libraries are found: + 3a. Open MPI will build support for . + 3b. If is neither "/usr" nor "/usr/local", Open MPI will + compile itself with RPATH flags pointing to the directory where + 's libraries are located. Open MPI does not RPATH + /usr/lib[64] and /usr/local/lib[64] because many systems + already search these directories for run-time libraries by + default; adding RPATH for them could have unintended + consequences for the search path ordering. + INSTALLATION OPTIONS --prefix= From 22f563e647ef61e1b1a717992f6a2ce3e8d9c5e4 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 25 Sep 2018 11:02:11 -0400 Subject: [PATCH 2/2] README: additional clarification about --with--libdir. Signed-off-by: Jeff Squyres (cherry picked from commit 36c9f92117053ccd343c30c4540971240717a233) --- README | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/README b/README index 362b1dc9a8f..249921e0ece 100644 --- a/README +++ b/README @@ -765,17 +765,21 @@ Additionally, if a search directory is specified in the form --with-=, Open MPI will: 1. Search for 's header files in /include. -2. Search for 's library files in /lib, and if they are not - found there, search again in /lib64. +2. Search for 's library files: + 2a. If --with--libdir= was specified, search in + . + 2b. Otherwise, search in /lib, and if they are not found + there, search again in /lib64. 3. If both the relevant header files and libraries are found: 3a. Open MPI will build support for . - 3b. If is neither "/usr" nor "/usr/local", Open MPI will - compile itself with RPATH flags pointing to the directory where - 's libraries are located. Open MPI does not RPATH - /usr/lib[64] and /usr/local/lib[64] because many systems - already search these directories for run-time libraries by - default; adding RPATH for them could have unintended - consequences for the search path ordering. + 3b. If the root path where the libraries are found is neither + "/usr" nor "/usr/local", Open MPI will compile itself with + RPATH flags pointing to the directory where 's libraries + are located. Open MPI does not RPATH /usr/lib[64] and + /usr/local/lib[64] because many systems already search these + directories for run-time libraries by default; adding RPATH for + them could have unintended consequences for the search path + ordering. INSTALLATION OPTIONS