Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] [EXTERNAL] Re: mpicc link shouldn't add -ldl and -lhwloc
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2012-05-24 18:17:57


On May 24, 2012, at 6:07 PM, Orion Poplawski wrote:

>>> I should add the caveat that they are need when linking statically, but
>>> not when using shared libraries.
>>
>> And therein lies the problem. We have a number of users who build Open
>> MPI statically and even some who build both static and shared libraries in
>> the same build. We've never been able to figure out a reasonable way to
>> guess if we need to add -lhwloc or -ldl, so we add them. It's better to
>> list them and have some redundant dependencies (since you have to have the
>> library anyways) than to not list them and have odd link errors.
>
> Could you not add them if --enable-static is not passed to configure? That would at least help with building the Fedora packages.

I have a dim recollection that we specifically chose not to do this (i.e., that there was some hidden "gotcha" with that approach), but I confess to not remembering why.

Brian -- do you remember?

-- 
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/