LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-05-2004, 10:21 PM   #16
mdh
Member
 
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122

Rep: Reputation: 16

Take a look at

http://www.linuxfromscratch.org/~rya...pts/cross-lfs/
or
http://be-linux.org/svn/viewcvs.cgi/...root=cross-lfs

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 libgcc_s.so (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)

HTH
[R]
 
  


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-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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration