On 08/01/2016 11:13, Read, James C wrote:
book, in particular the instructions for GCC and Binutils. You can also
just pastebin the history for the clfs user so someone here can look
over your commands.
#!/bin/bash
#
# Binutils Pass 1
[...]
CC=$LFS_TGT-gcc &&
AR=$LFS_TGT-ar &&
RANLIB=$LFS_TGT-ranlib &&
../binutils-2.25.1/configure --prefix=/tools --disable-nls --disable-werror 
--with-lib-path=/tools/lib --with-sysroot
This is wrong: if you enter:
SOMEVAR=xxx <somecommand>
then <somecommand> is executed with SOMEVAR=xxx in its environment, but SOMEVAR is not set for further commands

So if you enter:
SOMEVAR=xxx && <somecommand>
then <somecommand> knows nothing about SOMEVAR.

You should replace && with \\ in the above part of your script.

Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to