id summary reporter owner description type status priority milestone component version resolution keywords cc port 51303 netcdf: Request: Add static library libnetcdf.a to build anowacki tenomoto "The majority of library ports that I have installed, but admittedly not all, seem to build and install both a static and dynamic version of the library. This is based on: {{{ $ ls /opt/local/lib/lib*.{a,dylib} | awk -F. '!/lib.*\..*\.dylib/ {lib[$1]++} END {for (l in lib) if (lib[l] > 1) { print l, ""yes""; n++ } else { print l, ""no""; m++ } print ""\n""n, ""of"", n+m, ""have static libraries""}' }}} Quite a few codes that I use, one example being SEATREE (http://geosys.usc.edu/projects/seatree/wiki/), seem to want to enforce static linking (presumably for executable portability or 'performance'), and so will not use a dynamic library. Would it be possible for the NetCDF port to create a static library? I apologise for not offering a patch for this, but my brain is not big enough to deal with CMake. I understand this is probably low priority, but I for one would find building a static library very useful, and it hopefully would be fairly trivial. I note that the `netcdf-fortran` port ''does'' build the static library, as does `hdf5`, which prompted me to believe the suggestion might be feasible. Please let me know if I can help in any way." enhancement closed Normal ports wontfix netcdf