NSF Unidata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #PRO-546143]: netcdf -fPIC

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.



You should be able to specify this with CFLAGS. That is (in sh):

CFLAGS=-fPIC ./configure && make check.

You could also try the 3.6.2 alpha release I just put on the netCDF FTP site:

ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.6.2-alpha1.tar.gz

This alpha release builds shared libraries, which should be built with -fPIC 
automatically.

Thanks,

Ed

Ticket Details
===================
Ticket ID: PRO-546143
Department: Support netCDF
Priority: Normal
Status: Open