Karsten Bolding <karsten@xxxxxxxxxxxxxxxxxxxx> writes:
> Hello
>
> 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.
>
> Karsten
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.
Thanks,
Ed
--
Ed Hartnett -- ed@xxxxxxxxxxxxxxxx