LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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

Reply
 
Search this Thread
Old 08-04-2005, 01:13 PM   #1
nazir
Member
 
Registered: Apr 2002
Location: Poland, Gliwice/Pszczyna
Distribution: Mandrake, Slackware
Posts: 41

Rep: Reputation: 15
LFS without gcc and glibc


I want my LFS system as small as possible, I don't need gcc and whole glibc..and some other things. How can I do that?
 
Old 08-04-2005, 02:41 PM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
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.
 
Old 08-04-2005, 03:31 PM   #3
nazir
Member
 
Registered: Apr 2002
Location: Poland, Gliwice/Pszczyna
Distribution: Mandrake, Slackware
Posts: 41

Original Poster
Rep: Reputation: 15
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??
 
Old 08-05-2005, 08:49 AM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Quote:
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

Oliv'
 
Old 08-05-2005, 11:00 AM   #5
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,230

Rep: Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071
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.
 
Old 08-05-2005, 11:23 AM   #6
nazir
Member
 
Registered: Apr 2002
Location: Poland, Gliwice/Pszczyna
Distribution: Mandrake, Slackware
Posts: 41

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS v6-installation of glibc; need help kartheekpn Linux From Scratch 31 04-26-2005 04:13 PM
Glibc-2.3.3-lfs-5.1 EPM_Students Linux From Scratch 1 02-12-2005 06:37 AM
Glibc (2.3.3-lfs-5.1) Mystified Linux From Scratch 2 12-02-2004 05:14 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare Suse/Novell 3 11-29-2004 02:13 PM
3rd LFS build (this time on x86-64): about GCC and GLIBC and other questions... ParticleHunter Linux From Scratch 1 08-16-2004 10:47 AM


All times are GMT -5. The time now is 12:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration