mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 04:29:50 -05:00
By default, NetCDF only builds static libs. This leads to some
complicated dependencies that must be satisfied by other programs that
link against libnetcdf.a:
nc-config --libs
-L/<brew root>/Cellar/netcdf/4.1.1/lib -lnetcdf
-L/<brew root>/Cellar/hdf5/1/lib -lhdf5_hl -lhdf5 -lz -lm -lcurl
HDF5 is required to access version 4 of the NetCDF file format.
When shared libraries are provided, the linking requirements are
greatly simplified:
nc-config --libs
-L/<brew root>/Cellar/netcdf/4.1.1/lib -lnetcdf
This eases the build process for other formulas that depend on NetCDF
libraries.
The static libraries are still compiled and available for use.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>