What does it mean by cross compiler or cross compiling?
I'm in chapter 5 to build temporary system.
I tried this for binutils:
../configure --prefix=/tools \
--with-sysroot=$LFS \
--with-lib-path=/tools/lib \
--target=$LFS_TGT \
--disable-nls \
--disable-werror
make -j2
make install
It looked, binutils was installed successfully in /tools. But I don't know
what --with-sysroot=$LFS does. Can anyone explain this? Won't
--prefix=/tools and --target=$LFS_TGT install binutils? Why do we need
--with-sysroot=$LFS?
After installing binutils in that way I wanted to install gcc in /tools in
one pass too. I wanted to skip gcc pass 2:
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass2.html
What would be the configure then? I tried this:
../configure \
--target=$LFS_TGT \
--prefix=/tools \
--with-glibc-version=2.11 \
--with-sysroot=$LFS \
--with-newlib \
--with-local-prefix=/tools \
--with-native-system-header-dir=/tools/include \
--enable-languages=c,c++
make -j2 ## this gives error like missing thread.h or missing stdio.h or
some other header files.
Can anyone tell me how I should configure and install gcc with one pass
using that previously installed binutils?
Also when do I need this: --host=$LFS_TGT? What's the difference between
--host=$LFS_TGT and --with-sysroot=$LFS? --host is in
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-libstdc++.html
and http://www.linuxfromscratch.org/lfs/view/stable/chapter05/glibc.html
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/glibc.html , In
glibc I saw: --build=$(../scripts/config.guess) , what does this --build
do? When do I need --build? Why didn't we need --build in binutils and gcc?
--
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