Re: [MacPorts] #57733: netcdf: Ports linking with netcdf also link with hdf5—overlinking?
MacPorts
noreply at macports.org
Fri Mar 8 20:15:39 UTC 2019
#57733: netcdf: Ports linking with netcdf also link with hdf5—overlinking?
-------------------------+----------------------
Reporter: ryandesign | Owner: tenomoto
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: netcdf |
-------------------------+----------------------
Comment (by Dave-Allured):
This problem is now fixed upstream in netcdf-c for pkg-config only. On
the next portfile update for new netcdf release 4.6.3, you can use this
for dynamic (shared) linking:
{{{
$ pkg-config netcdf --libs
}}}
And for static builds, add the --static option:
{{{
$ pkg-config netcdf --libs --static
}}}
See pkg-config docs. This guide to pkg-config is helpful:
https://people.freedesktop.org/~dbn/pkg-config-guide.html
--
Ticket URL: <https://trac.macports.org/ticket/57733#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list