1
1
openmpi/opal
Jeff Squyres dc7d30b0ed We (Ralph and Jeff) discovered that if the OPAL_DESTDIR environment
variable was set, it was prefixed to ''all'' values in the wrapper
compiler data text files.  For example, if OPAL_DESTDIR was set to
/tmp/bogus and a wrapper compiler data file contained the line:

  preprocessor_flags=-pthread

The value would be exanded to:

  /tmp/bogus/-pthread

Which is clearly wrong.  After some back-and-forth with Ralph and
Brian, Brian submitted this patch that fixes the problem.  Now we
handle three cases properly (assume that configure was invoked with
--prefix=/opt/openmpi and no other directory specifications, and
$OPAL_DESTDIR is set to /tmp/buildroot):

1. Individual directories, such as libdir.  These need to be prepended
with DESTDIR.  I.e., return /tmp/buildroot/opt/openmpi/lib.

2. Compiler flags that have ${FIELD} values embedded in them.  For
example, consider if a wrapper compiler data file contains the
line:

  preprocessor_flags=-DMYFLAG="${prefix}/share/randomthingy/"

The value we should return is:

  -DMYFLAG="/tmp/buildroot/opt/openmpi/share/randomthingy/"

3. Compiler flags that do not have any ${FIELD} values.  For example,
consider if a wrapper compiler data file contains the line:

  preprocessor_flags=-pthread

The value we should return is:

  -pthread

Note, too, that this OPAL_DESTDIR futzing only needs to occur during
opal_init().  By the time opal_init() has completed, all values should
be substituted in that need substituting.  Hence, we take an extra
parameter (is_setup) to know whether we should do this futzing or
not.

This commit was SVN r23402.
2010-07-14 00:53:08 +00:00
..
asm Don't forget to update the return value for PPC32 and PPC64. 2010-02-18 19:16:41 +00:00
class Remove include/opal/sys/cache.h -- its only purpose in life was to 2010-07-06 14:33:36 +00:00
config If we're not building project_ompi, don't do anything with C++. Also 2010-06-12 03:15:47 +00:00
datatype Spaces instead of tabs. 2009-12-15 18:07:33 +00:00
dss The system headers are supposed to be protected by #ifdef and not by #if. 2009-07-16 18:27:33 +00:00
etc Ensure that platform-specific mca param files get installed with the correct default mca param filename. Platform-specific mca param files overwrite any pre-existing default mca param file as they are considered to be the "gold" standard if a platform file was provided. 2008-08-27 02:40:02 +00:00
event Solve a few compilation problems on Windows. 2010-05-21 14:30:15 +00:00
include Remove include/opal/sys/cache.h -- its only purpose in life was to 2010-07-06 14:33:36 +00:00
mca We (Ralph and Jeff) discovered that if the OPAL_DESTDIR environment 2010-07-14 00:53:08 +00:00
memoryhooks - Replace combinations of 2009-08-20 11:42:18 +00:00
runtime Remove include/opal/sys/cache.h -- its only purpose in life was to 2010-07-06 14:33:36 +00:00
threads Add another helpful macro 2010-04-06 22:40:45 +00:00
tools Use variables instead of hard-coded compiler flags, in order to support various C/C++ compilers on Windows. 2010-04-21 12:45:00 +00:00
util Add a function to prepend a string to the beginning of an argv array - useful when building app_contexts from user input 2010-06-24 15:52:36 +00:00
win32 Mainly type casts. 2010-07-12 16:17:56 +00:00
CMakeLists.txt Use variables instead of hard-coded compiler flags, in order to support various C/C++ compilers on Windows. 2010-04-21 12:45:00 +00:00
Makefile.am This commit converts us to the "one big libmpi" scheme that has been 2010-02-23 22:20:01 +00:00
win_makefile Move all win32 related files in opal, and modify all the Makefiles.am to 2005-12-08 06:17:15 +00:00