BusyBox

Richard Lightman richard at reika.demon.co.uk
Mon Jul 16 22:41:07 PDT 2001


Misquoted from Guillermo Pereyra Irujo on 2001/07/16 at 15:04 +0000:
> >
> > Does anyone have any hint about building size optimized apps?
> 
Use -Os (optimize for size) with gcc.
strip -g all libraries
strip -s all binaries

If you are really short of space,
Try something like:
  mkcramsfs $LFS/usr $LFS/usr.cram
  rm -r $LFS/usr/*
  echo >>$LFS/fstab "/usr.cram /usr cramfs loop=/dev/loop/0,ro 0 0"

Richard
-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message



More information about the lfs-dev mailing list