LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   GCC-4.5.2 - Pass 2 / unsetting the multilib spec for GCC (http://www.linuxquestions.org/questions/linux-from-scratch-13/gcc-4-5-2-pass-2-unsetting-the-multilib-spec-for-gcc-891004/)

golarbol 07-10-2011 09:51 PM

GCC-4.5.2 - Pass 2 / unsetting the multilib spec for GCC
 
Hi,

If i'm not building on x86_64 computer, do i have to enter this command present on chapter 5.10.1

Code:

case $(uname -m) in
  x86_64)
    for file in $(find gcc/config -name t-linux64) ; do \
      cp -v $file{,.orig}
      sed '/MULTILIB_OSDIRNAMES/d' $file.orig > $file
    done
  ;;
esac

Thanks for reading.

druuna 07-11-2011 02:13 AM

Hi,

All the commands need to be executed. There are some exceptions, but if this is the case it is mentioned specifically by the book.

If you take a look at the above code block you'll see that the cp and sed commands are only executed in a specific case (if the output of the uname -m command equals x86_64).

BTW: If you're level of expertise isn't high enough to be able to understand what a relative simple command block like the above does, you might be in for a rough ride. I can only point you to what is being said in the LFS documentation: vi. Prerequisites.

Hope this helps.

golarbol 07-11-2011 07:30 AM

Thanks druuna.


All times are GMT -5. The time now is 04:47 PM.