Build Petsc with Shared Libraries

Romain Jolivet jolivetinsar at
Tue Jul 17 17:06:46 PDT 2012


I would like to build petsc using macports (because it is easy), and I would need the shared libraries option to be on.
I created a variant on the petsc port, adding:

variant shared description {build with shared libraries} {
    configure.args-delete   --with-shared-libraries=0
    configure.args-delete   --with-pic=fPIC
    configure.args-append   --with-shared-libraries=1

I have to delete --with-pic=fPIC, otherwise it does not run. Then, it configures and builds fine, but when macports checks on the created files, it complains, and restarts the whole process (and does it over and over again):

It says:

--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  Found 3 broken file(s), matching files to ports
--->  Found 1 broken port(s), determining rebuild order

I don't know how to modify what macport is checking (and probably, I should not). Can someone tell me what I am doing wrong?

Thank you very much

Romain Jolivet
Highland Park, Los Angeles, CA
jolivetinsar at
+1 (626) 560 6356

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list