"Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:

| On Sun, Oct 20, 2002 at 12:59:34PM +0200, Lars Gullik Bjønnes wrote:
| > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:
| > 
| > | On Sun, Oct 20, 2002 at 05:11:26AM +0100, John Levon wrote:
| > | > On Sat, Oct 19, 2002 at 09:08:47PM -0700, Kayvan A. Sylvan wrote:
| > | > 
| > | > > The template-depth patch...
| > | > 
| > | > Why do we need this in addition to the stuff we have in config/ ?
| > | > 
| > | > john
| > | > -- 
| > | > "It's a cardboard universe ... and if you lean too hard against it, you fall
| > | >  through." 
| > | >         - Philip K. Dick 
| > | 
| > | The RPM compile (using "make rpmdist") sets CFLAGS and CXXFLAGS to -O2,
| > | without the -ftemplate-depth-xx flag.
| > | 
| > | So... "make rpmdist" fails with the template-depth error.
| > 
| > But why should the rpm build set it to anyting else than ./configure
| > does? Really?
| > 
| > -- 
| >     Lgb
| 
| You need to set the CFLAGS and CXXFLAGS to use -O2 instead of -g,
| otherwise you will have a 93MB lyx executable.

configure --help 

says that we support --enable-debug (and thus --disable-debug), and
--enable-optimization=value.

That should take care of both -g and -O2 and leave lyx's configure to
take care of the rest.

Btw. rpms should probably be built with --disable-dependency-tracking
too, to speed up the a bit.

-- 
        Lgb

Reply via email to