Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 12-05-2004, 10:21 PM   #16
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122

Rep: Reputation: 16

Take a look at

to see how I got around it.

o when copying across the glibc headers, ensure you copy across the appropriate pthread headers as well.
that way you can build gcc with thread support.

o build crt[i1n].o from the glibc source immediately after the initial cross-gcc build (ie: first pass, no shared libgcc))

o rebuild gcc after installing the startfiles, this time enabling shared libgcc, but note you have to remove -lc from the link
for (you do not have a -lc you can use yet).

at this point you should have everything you need to build glibc with the posix threading implementation of your choice
(note you will have to manually prime some values in a config.cache, see the cross-lfs scripts).

Build and install glibc, then rebuild gcc, this time no modifications required (you now have -lc)



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-5.0 GCC problem with binutils-2.14 pass 1 NCappaZoo Linux From Scratch 6 06-14-2009 03:47 AM
Building GCC on SuSE 9.3 from scratch... foucault Linux - Software 0 10-25-2005 06:30 AM
Installing GCC from scratch?? The_Nerd Linux - Software 2 10-23-2005 03:39 PM
Solved Problem Second GCC-Pass(or gettext sanity check problem) hoes Linux From Scratch 0 09-04-2005 10:20 AM
Rebuilding slackware from scratch with gcc-3.4.4 fast_rizwaan Slackware 11 08-15-2005 01:20 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:58 AM.

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