Karsten Bolding <karsten@xxxxxxxxxxxxxxxxxxxx> writes:
> I use nf-config (nc-config) in my Makefiles to properly compile and
> build programs needing NetCDF:
> Rules.make:INCDIRS += $(shell nc-config --fflags)
> Rules.make:NETCDFLIB = $(shell nc-config --flibs)
> I've just realized that:
> nc-config --fflags
> -g -I/opt/netcdf-4.1.3_IFORT/include
> How do I avoid the -g? I'm pretty sure I did not specify -g during the
> compilation of the NetCDF libraries.
I believe, with the GNU-based build system, that -g might be turned on
for builds by default.
To check, look at the output of the netCDF build and see if the -g
option is being used.
If this is the source of the problem, then you may wish to rebuild
netCDF, and explicitly set CFLAGS to "" (empty string) to prevent this.
Ed Hartnett -- ed@xxxxxxxxxxxxxxxx