Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: LFS, I felt the itch and scratched it
Posts: 227
Rep:
uclibc will replace glibc, not sure about replacing gcc since you need that to compile anything else, although there's probably ways to make gcc a minimum install.
Originally posted by nazir so system doesn't need glibc to run? can I compile in the last stage whole system by gcc from /tool and without installing gcc to /usr??
Yes you can use gcc from your chroot environnement
and if you really need a tiny system, you can also use busybox (a tiny bash and more)
to replace glibc, you have the choice: klibc, dietlibc but I think the best choice is µClibc
The system, as in the kernel, does not use a library, but most application programs do unless they are statically-linked (in which case the necessary library code is simply bundled-up inside of the executable). I don't know which alternative would be "smaller."
A default installation of both tools will bring in just about everything but the kitchen sink. (Ada, anyone?) But you can reduce them considerably if you try.
I need this system to work on Advantech PCM-5820, i need to run my own apps which will only transmit and receive some data through RS's and by network, to reduce cost i need to make the system as small as possible..and of course i don't need all stuff. But i need to be able to install some soft when i'll need it and be able to make some updates...so i don't want to install any of the pocket distro's. I'll try to make default LFS as small as possible...something about 40MB-50MB would satisfy me
so if you have any other hints i would be grateful
Thanks for help
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.