Skip to content

Commit 9f4e716

Browse files
committed
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 <[email protected]> (cherry picked from commit 9367440)
1 parent 468418a commit 9f4e716

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
88
University of Stuttgart. All rights reserved.
99
Copyright (c) 2004-2007 The Regents of the University of California.
1010
All rights reserved.
11-
Copyright (c) 2006-2017 Cisco Systems, Inc. All rights reserved.
11+
Copyright (c) 2006-2018 Cisco Systems, Inc. All rights reserved.
1212
Copyright (c) 2006-2011 Mellanox Technologies. All rights reserved.
1313
Copyright (c) 2006-2012 Oracle and/or its affiliates. All rights reserved.
1414
Copyright (c) 2007 Myricom, Inc. All rights reserved.
@@ -748,6 +748,22 @@ Open MPI is unable to find relevant support for <foo>, configure will
748748
assume that it was unable to provide a feature that was specifically
749749
requested and will abort so that a human can resolve out the issue.
750750

751+
Additionally, if a search directory is specified in the form
752+
--with-<foo>=<dir>, Open MPI will:
753+
754+
1. Search for <foo>'s header files in <dir>/include.
755+
2. Search for <foo>'s library files in <dir>/lib, and if they are not
756+
found there, search again in <dir>/lib64.
757+
3. If both the relevant header files and libraries are found:
758+
3a. Open MPI will build support for <foo>.
759+
3b. If <dir> is neither "/usr" nor "/usr/local", Open MPI will
760+
compile itself with RPATH flags pointing to the directory where
761+
<foo>'s libraries are located. Open MPI does not RPATH
762+
/usr/lib[64] and /usr/local/lib[64] because many systems
763+
already search these directories for run-time libraries by
764+
default; adding RPATH for them could have unintended
765+
consequences for the search path ordering.
766+
751767
INSTALLATION OPTIONS
752768

753769
--prefix=<directory>

0 commit comments

Comments
 (0)