Ticket #28554 (closed enhancement: fixed)
hdf5-18: Enable static fortran libs and shared c/c++ libs together
| Reported by: | eborisch@… | Owned by: | mmoll@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.2 |
| Keywords: | Cc: | ||
| Port: | hdf5-18 |
Description
By default, hdf5 1.8 (upstream) disables shared libs on OSX whenever the fortran interface is built, but actually knows (they do it for some other compilers) how to build c/c++ shared and fortran static. The supplied portfile patch and associated patch files enable this configuration in macports.
If everyone else has good luck with them (i tested on x86_64 and gcc44; make test passed all tests) I'll submit the change upstream.
Attachments
Change History
comment:1 Changed 2 years ago by mmoll@…
- Status changed from new to closed
- Resolution set to fixed
Works for me, too. Thanks for the patches. I have committed them in r76521. Please do submit the patches upstream.
comment:2 Changed 2 years ago by eborisch@…
For the record, I submitted following comments upstream (http://www.hdfgroup.org/about/contact-form.html) 4/7/2011:
While the shared fortran HDF5 libraries may not function on OSX, the shared C libraries certainly do. Two minor changes to the logic in will enable building static+shared C/C++ and the static Fortan libraries at the same time, as is already supported for some other compiler variations:
configure[.in] : add a case to check for Darwin and then set H5_FORTRAN_SHARED="no" among the existing un-supported shared fortran compiler checks. (line 845 of configure.in)
config/apple : remove the "Fortran doesn't work with shared libraries" section (lines 50-57) as this will be redundant with the above change.

