See https://bugzilla.redhat.com/show_bug.cgi?id=814798
$ mpicc -showme:link
-pthread -m64 -L/usr/lib64/openmpi/lib -lmpi -ldl -lhwloc
-ldl and -lhwloc should not be listed. The user should only link against
libraries that they are using directly, namely -lmpi, and they should
explicitly add -ldl and -lhwloc if their code directly uses those libraries.
There does not appear to be any references to libdl or libhwloc symbols in the
openmpi headers which is the other place it could come in.
configure appears to add them to opal_WRAPPER_EXTRA_LIBS which then makes its
way into this list.
This report is with openmpi-1.5.5. Haven't tested with 1.6, but configure
looks to do the same in it.
Comments?
- Orion
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder Office FAX: 303-415-9702
3380 Mitchell Lane or...@nwra.com
Boulder, CO 80301 http://www.nwra.com