On 01/26/2013 01:56 AM, Randy McMurchy wrote:
> [email protected] wrote these words on 01/25/13 18:40 CST:
>> Author: krejzi
>> Date: Fri Jan 25 16:40:55 2013
>> New Revision: 10979
>>
>> Log:
>> Package updates, see changelog for details.
>>   <screen><userinput>autoreconf -fi &amp;&amp;
>> -./configure --prefix=/usr                  \
>> +./configure CFLAGS="-O2" CXXFLAGS="-O2"    \
>> +            --prefix=/usr                  \
>>               --sysconfdir=/etc              \
>>               --enable-texture-float         \
>>               --enable-gles1                 \
>> @@ -220,16 +221,6 @@
>>
>> +      <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
>> +      <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
>> +      "-g -O2". That results in binaries and libraries being built with
>> +      debugging symbols which make them bigger. We override default
>> +      flags to ommit -g switch so the final libraries are smaller.
>> +    </para>
>
> I do not see why we just cannot give instructions to strip the binaries 
> instead
> of passing flags to configure. That makes no sense. For instance, the Gimp
> creates a 35MB binary executable that can be stripped down to less than 6MB 
> but
> we do not mention that. I'd bet most experienced BLFSers strip libs and 
> binaries
> as a matter of course after building. Passing flags to configure is just extra
> confusion, for no reason.
>
> Additionally, I am very much opposed to using "we" in the book. Who is "we"?
> Someone building the packages is doing it by his or her self. Lastly, there is
> a typo:
>
> s/ommit/omit/  :-)
>

-g flag was always ommited from MesaLib before it started to migrate to 
Autotools (pre 9.0).

After that I didn't know a proper way to remove it, so I added the 
instructions to strip the libraries. While updating to 9.0.2 I consulted 
with people on #dri-devel channel on Freenode and they pointed me to that.

When you override CFLAGS and CXXFLAGS, build directory is 1GB smaller 
than with default ones. And installed files are at least 50% smaller than.

As for "we", I think about us, the editors ...

I'll see what I can do, but I still like the idea about CFLAGS and 
CXXFLAGS and yes - I am aware that disk space is cheap nowadays, but 
that doesn't affect disk space only, but runtime, too ... Loading 5MB 
library is always faster than loading 50MB one ...

And as a side note, every e-mail from your address lands into my spam 
folder for some reason.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to