Build Petsc with Shared Libraries

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


Hello, 

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120717/813377c2/attachment.html>


More information about the macports-users mailing list