This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: override default CXXFLAGS
- To: rusty at sgi dot com,"Rusty Ballinger" <rusty at rlyeh dot engr dot sgi dot com>,riemer at lincvs dot org
- Subject: Re: override default CXXFLAGS
- From: Gary V. Vaughan <gary at oranda dot demon dot co dot uk>
- Date: Fri, 22 Jun 2001 18:46:17 +0100
- Cc: automake at gnu dot org
- List-Id: Discussion list for automake <automake.gnu.org>
- Organization: GNU
- References: <20010622121920.A5469@ppprs1.phy.tu-dresden.de> <10106220345.ZM448163@rlyeh.engr.sgi.com>
On Friday 22 June 2001 11:45 am, Rusty Ballinger wrote:
> > I set the CXXFLAGS via AM_CXXFLAGS in Makefile.am. the relase version
> > should have no -g flag... but there is a default CXX_FLAGS variable in
> > Makefile which has always the -g flag. how can I remove this one?
>
> One way is to set it in the environment when running the configure script:
>
> $ CXXFLAGS= ./configure --with-various-args
If you just want to get rid of the debug symbols, do it at install time:
$ make install-strip
Cheers,
Gary.
--
())_. Gary V. Vaughan gary@(oranda.demon.co.uk|gnu.org)
( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____
/ )= GNU Hacker http://www.gnu.org/software/libtool \' `&
`(_~)_ Tech' Author http://sources.redhat.com/autobook =`---d__/