[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Alternative compiling for debug/optimized code?
From: |
Andreas Schwab |
Subject: |
Re: Alternative compiling for debug/optimized code? |
Date: |
Thu, 08 Dec 2005 15:26:03 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
"Daniel Kraft" <address@hidden> writes:
> Using automake the default compiler flags seem to be -g -O2; but most of the
> time I don't need debug code
You'll need it most when you don't have it.
> so I want to disable that -g - option.
./configure CFLAGS=-O2
> And it is possible to do something similiar to the alternative compiling
> described above - i.e. to have a simple way for switching opt/debug mode,
> maybe
> without having to reconfigure?
make CFLAGS=-O2
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."