|
From: Alan W. I. <ai...@us...> - 2003-11-14 20:19: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. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the PLplot scientific plotting software package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |