|
From: Joachim G. <joa...@ip...> - 2003-11-17 09:39:21
|
Rafael Laboissiere wrote: >* 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? > > > Thanks alot, this worked. I followed Alan's suggestion giving make the appropriate compilation flags. Additionally, I would vote for the suggested TODO entry. Best regards, Joachim -- -----------------------------------------------@\\ Joachim Geiger @\\ Institute for Plasma Physics, Euratom Association\\\ Department E3 \\\__ Wendelsteinstr. 1 ( \\ \ D-17491 Greifswald, Germany \_ \\(_ Tel.: 03834/88-2327 ) \\ \ e-mail: joa...@ip... \ - | --------------------------------------------------- \____/ |