Re: Compiling C++ without -g
On Sat, Aug 03, 2002 at 03:00:41PM +0100, Will Newton wrote:
> Is there a way to prevent autoconf from appending "-g" to every g++ command
> line? I really want to reduce the diskspace and CPU time required to build my
> package, but autoconf seems to assume if you have g++ you have to have "-g"
> AC_PROG_CXX calls _AC_PROG_CXX_G which if successful unconditionally appends
> "-g" to the command line.
Try passing CFLAGS to configure, e.g. CFLAGS="-O2" ./configure...