[petsc-users] macport and petsc

Jed Brown jedbrown at mcs.anl.gov
Wed Apr 24 23:52:07 CDT 2013


Barry Smith <bsmith at mcs.anl.gov> writes:

>> "gcc -lblas" works.
>> "gcc -L/opt/macports/lib -lotherpackage -lblas" fails..
>
>    Unix and Buildsystem suck :-). 

This is the reason why CMake insists on resolving libraries to complete
paths.  It still can't fix linking to shared libraries, but at least
they can warn/error when you'll be getting a different version than you
asked for.

On the other hand, CMake's approach is spoiled by compilers that have
private paths that you aren't supposed to know about, but that -lsomelib
will be found in.


More information about the petsc-users mailing list