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
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/


Reply via email to