Help answer threads with 0 replies.
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 07-14-2003, 03:58 AM   #1
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
Question lfs try...

Hi guys,

maybe some kind of stupid newbie question, but here it is:
i'm trying to build a lfs system, following the book from it tells me to compile the binutils package with make LDFLAGS="-all-static" but this doesn't work (checking whether C/C++ compiler works: NO) how can i compile the binutils? using make LDFLAGS="-static" works, but how can i check whether it's compiled static-linked? i'm building from a slackware 9 install with gcc 3.2.2, binutils-2.14

what's happening??
Old 07-14-2003, 04:02 AM   #2
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Original Poster
Rep: Reputation: 30
owh, i've checked the CFLAGS and CXXFLAGS, but these are set to nothing... any solution?
Old 07-19-2003, 03:19 PM   #3
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Which LFS book are you using?

The message you mention sounds as though it's a part of the onfigure script. And based on that message, it sounds as though you don't have gcc installed, or it's not in your path.

As for it "working" with LDFLAGS="-static", that depends on the package. When trying to compile a specific package, the programmers tell it to look for specific flags. If it doesn't match what they expect, they ignore it, which might be what's happening here.

This is not conclusive proof, but look at the size of the binutils executables on your slackware system and compare them to the ones you tried to compile. If they're about the same size, then they aren't statically linked. If the LFS versions are significantly larger, then it did work.
Old 09-05-2003, 08:59 PM   #4
LQ Newbie
Registered: May 2003
Distribution: Debian testing
Posts: 2

Rep: Reputation: 0
i was having the same problem compiling binutils, expept i was typing " make LDFLAGS="-all-static" ", and was getting the same error, when i read you were using -static, i deleted "all" and ended up leaving the - so it was " make LDFLAGS="--static" and that compiled
hope this helps

Last edited by icyfire0573; 09-05-2003 at 09:05 PM.
Old 09-06-2003, 11:52 AM   #5
Registered: Jun 2003
Posts: 30

Rep: Reputation: 15

make configure-host
make LDFLAGS="-all-static"
make install


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 Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
QUERY: is LFS LFS? kevingpo Linux From Scratch 7 09-23-2005 12:15 PM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 06:10 AM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 03:15 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:43 PM.

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