Visit Jeremy's Blog.
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 02-02-2005, 02:42 PM   #1
Registered: Jan 2005
Location: california
Distribution: O.A.M. (Overmonitoring Address Matrix) Release 2.2 with 2120 Patch
Posts: 37

Rep: Reputation: 17
sed question from Ch 6.12

What is the purpose of `gcc --print-file specs` in this sed command:

sed -i 's@ /tools/lib/ /lib/' \
`gcc --print-file specs`

Will sed execute

`gcc --print-file specs`

as a shell command? I didn't run the sed command from Chapter 6.12. Instead, I edited the specs file by hand. Should I then run

`gcc --print-file specs`

from the command line?
(Actually, I went ahead and did run

`gcc --print-file specs`

from the command line, and the response I got was only this:


Since then, the rest of my LFS install has been going without trouble.)
Old 02-02-2005, 03:36 PM   #2
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
if you edited by hand and changed the linker to /lib instead of /tools/lib you'll be alright. ` ` delimits a command. you will see this with library config executables to (like pkg-config and such) or even on the command line (cd /lib/modules/`uname -a`/kernel will change directory to the current running kernel's /lib/modules/<version>/kernel directory).


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
sed question ckoniecny Linux - General 3 11-11-2005 09:31 AM
sed question sphynx Programming 6 04-28-2004 06:25 PM
little sed question freelinuxcpp Linux - Software 3 01-20-2004 07:36 AM
sed question zoomzoom Linux - Software 2 10-20-2003 04:04 PM
A question on 'sed' Barbarian Programming 4 04-11-2002 10:19 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:35 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