1
1
openmpi/opal/mca/installdirs
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
..
base We (Ralph and Jeff) discovered that if the OPAL_DESTDIR environment 2010-07-14 00:53:08 +00:00
config Update related .windows files with proper compiling properties, in order to have a successful DSO build. 2009-08-12 08:55:58 +00:00
env Update related .windows files with proper compiling properties, in order to have a successful DSO build. 2009-08-12 08:55:58 +00:00
windows Remove the mistaken line (confirmed by Shiqing). 2009-10-30 12:45:05 +00:00
installdirs.h - Replace combinations of 2009-08-20 11:42:18 +00:00
Makefile.am Merge the /tmp/jms-installdirs-trunk branch into the trunk. This 2007-04-21 00:15:05 +00:00