LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-27-2012, 07:00 PM   #1
poisoning
Member
 
Registered: Mar 2011
Posts: 39

Rep: Reputation: 0
Question about "/tools/lib64"


Hello, is it mandatory to do the following? I'm doing my lfs on a PC-32 bits.

5.4. Binutils-2.22 - Pass 1

case $(uname -m) in
x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;;
esac
------------------------------------------------------------------
5.8. Adjusting the Toolchain

SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
$LFS_TGT-gcc -dumpspecs | sed \
-e 's@/lib\(64\)\?/ld@/tools&@g' \<-- Is to locate the folder lib64 bits?
-e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS
echo "New specs file is: $SPECS"
unset SPECS
-------------------------------------------------------------------
6.5. Creating Directories
...
...
case $(uname -m) in
x86_64) ln -sv lib /lib64 && ln -sv lib /usr/lib64 ;;
esac

...
...
------------------
run normally the commands?
 
Old 05-27-2012, 08:24 PM   #2
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
I build on a 32-bit machine. I omit the first one. That case statement is all by itself, and the book even says to do it "If building on x86_64...". I'm not, so I don't. But even if I did, it would not occur since the result of uname -m is i686 for a 32-bit machine.

The second one I do run because I copy and paste that entire block of commands all at once (again like the book says). That part you're interested in is a sed find and replace that searches for occurrences of /lib/ld or /lib64/ld. Then it adds /tools before occurrences of either of those. So everyone should run that whole block of commands.

I run that last one because it also is in a large block that I copy and paste all at once. On a 32-bit machine, that part you excerpted won't occur since the result of uname -m is i686. So everyone should run that whole block of commands.

Other people may do something different.

Last edited by stoat; 05-28-2012 at 07:27 AM.
 
1 members found this post helpful.
  


Reply



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
yum association between "Administration Tools" and @admin-tools qwkfish Linux - General 2 03-21-2012 04:14 PM
[SOLVED] A "DropBox" question, error: Can't sync:".directory":access denied. Robert.Thompson Slackware 4 08-25-2011 09:02 AM
Uneeded "/usr/lib64//firefox-3.6.10" directory in mozilla-firefox-4.0b6-x86_64-1.txz michelino Slackware 0 09-21-2010 05:20 AM
"/usr/lib64/libgobject-2.0.so: could not read symbols" when trying to install ORBit2 ollebanan Slackware 17 03-07-2010 09:33 AM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM

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

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

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