Boost logo

Boost-Build :

From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2007-08-08 23:43:15


Hi,

I've been testing Doug's mpi.jam file on our local systems and
noticed odd behavior. The <find-shared-library> properties are
sorted when they're put on the link line. Here's an example of this.

If I run mpiCC manually, I find the libraries are listed in the
proper link order (I've removed the other stuff for clarity)

mpiCC -c -showme:link ~/mpi.C
[....] -lmpi_cxx -lmpi -lorte -lopal -libverbs -lsysfs -lrt -ltorque -
lnsl -lutil -ldl

and when mpi.jam adds the properties to the mpi alias usage-
requirements, they're also in the correct order (I added an ECHO
where mpi.jam establishes the alias)

<find-shared-library>mpi_cxx
<find-shared-library>mpi
<find-shared-library>orte
<find-shared-library>opal
<find-shared-library>ibverbs
<find-shared-library>sysfs
<find-shared-library>rt
<find-shared-library>torque
<find-shared-library>nsl
<find-shared-library>util
<find-shared-library>dl

but when they show up on the line link, the libraries have been
reordered as though by alphabetical sorting.

[ from my link line ]

  -ldl -libverbs -lmpi -lmpi_cxx -lnsl -lopal -lorte -lrt -lsysfs -
ltorque -lutil

Is this a known feature of <find-shared-library>, has it been
reported as a bug?

-- Noel


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk