Boost logo

Boost-Build :

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


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)


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, david.abrahams at, gregod at, cpdaniel at, john at