Hi sqlite list,
By default, linux gcc does not appear to remove information and 
therefore final binaries tend to be larger than they need to be if you 
use stable versions of compiled binaries. Many people don't tend to 
realize this and therefore compile files larger than necessary if their 
system is running fine. The next 2 steps help reduce binary sizes 
(improve loading time due to less file to load from disk).
The 3rd suggested line is useful for those of us who configure as a user 
and leave the last final install step as superuser.

Please look in the README file:

    tar xzf sqlite.tar.gz    ;#  Unpack the source tree into "sqlite"
    mkdir bld                ;#  Build will occur in a sibling directory
    cd bld                   ;#  Change to the build directory
    ../sqlite/configure      ;#  Run the configure script
    make                     ;#  Run the makefile.
---add these next 3 lines----------
    strip .lib/sqlite3       ;#  Skip this if debugging info is needed
    strip -S .lib/libsqlite3.so.* ;# Skip this if debug info is needed
    su                       ;#  Change to root to install software
---end-----------------------------
    make install             ;#  (Optional) Install the build products

This is just a suggestion which can be useful for stable versions of 
sqlite by helping improve performance a little by reducing file sizes.

If the sqlite maintainer(s) thinks it is a good idea, hopefully it can 
be added to the README file, this way many people can appreciate a 
little extra speed boost and less resource hogging on their hardware if 
they are people who compile their own code but aren't aware of strip.

Thanks.

Reply via email to