Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-02-24 19:16:13

----- Original Message -----
From: "Steve M. Robbins" <steven.robbins_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Sunday, February 24, 2002 7:02 PM
Subject: Re: [boost] Size of shared libraries

> On Sun, Feb 24, 2002 at 05:03:17PM -0500, David Abrahams wrote:
> > My questions are:
> >
> > 1. Does anyone know of a "magic bullet" for decreasing the size of C++
> > shared libs on Unix (and secondarily, with GCC on any platform)?
> What flags are you compiling with? All the compiles I do (using
> "gcc-stlport.jam") end up with all optimization turned off, using the
> -O0 flag.

That's because the default build variant is "debug"

> Try again with -O2, perhaps.

    flags gcc CFLAGS <optimization>space : -O2 ;

When I compile with release/<optimization>space, I get -O2

Boost list run by bdawes at, gregod at, cpdaniel at, john at