[MacPorts] #51303: netcdf: Request: Add static library libnetcdf.a to build

MacPorts noreply at macports.org
Wed May 4 06:03:50 PDT 2016

#51303: netcdf: Request: Add static library libnetcdf.a to build
  Reporter:  andy.nowacki@…  |      Owner:  macports-tickets@…
      Type:  enhancement     |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.3.4
Resolution:                  |   Keywords:
      Port:  netcdf          |

Comment (by andy.nowacki@…):

 I understand the desire to keep the portfile simple, and I've submitted a
 request to UCAR for dual-building of shared and static libraries, so we'll
 see what happens there.  It seems {{{BUILD_SHARED_LIBS}}} doesn't preclude
 building both at once, but the machinery isn't in place and I agree it's
 better for this to come from upstream.

 > However, I could easily add a static variant, which does not install
 shared libraries with the current CMakeLists.txt.

 Presumably this '{{{+static}}}'(?) variant would conflict with the
 default, and so it would be a binary choice between having the static or
 dynamic libraries?  In that case, I think it's probably not worth
 maintaining that for the sake of some recalcitrant software that won't do
 dynamic linking, as I wouldn't choose the static variant over the dynamic

 Thanks for explaining all that, though.

Ticket URL: <https://trac.macports.org/ticket/51303#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X

More information about the macports-tickets mailing list