From: Rafael L. <lab...@ps...> - 2003-11-14 22:35:54
|
* Alan W. Irwin <ai...@us...> [2003-11-14 12:19]: > On 2003-11-14 19:05+0100 Joachim Geiger wrote: > > > ... I was not able to get rid of this stupid -g flag. > > Here is what is going on according to the documentation of the AC_PROG_CC > you get from 'info autoconf'. By default it chooses the -g flag if your > compiler will accept that flag (which is apparently the case for you.) But > if you want to override that default you must set the environment variable > CFLAGS to whatever option you like that is appropriate for your compiler, > i.e., use > > make 'CFLAGS = ' > > or > > make 'CFLAGS = -O2' > > I notice in the default Makefile generated on my system that CXXFLAGS and > FFLAGS also contain the -g option so you will have to set those variables to > whatever compile options are appropriate for your c++ and fortran compilers > as well. > > Rafael has suggested stripping your libraries, and my guess is that would > work as well. It would be nice to provide a configure option for forcing the stripping of the libraries. This could be implemented in an install-hook target in src/Makefile.am. Should I write a TODO entry for this? -- Rafael |