On Sun, 2006-07-30 at 01:59 +0200, Brandon Peirce wrote:
> On Fri, 28 Jul 2006 22:24:04 -0600, Dennis J Perkins wrote:
> >I've been googling on cross
> >compiling and comparing different methods of cross compiling, but some
> >things, like --with-sysroot, aren't well documented, so I was trying to
> >find something more comprehensive.  I think I understand most of what I
> >have found.
> 
> Indeed.  Clear, comprehensive documentation in that area is lacking,
> so if you feel like compiling the interesting stuff that you've found into
> a document (or an update to an existing document), I'm sure many
> people would find that useful.....
> 
> 

I might do that but I can't claim to understand many of the options for
installing binutils.

I like LFS and I have learned a lot from it, but now I want to know more
about building a Linux system.

I started experimenting today on building a cross compiler for my Athlon
64.  I think using --with-sysroot is a good idea, but I don't know yet
if its use should be limited to building a cross compiler.

I did find that --with-sysroot apparently dos not work with binutils,
despite seeing it in tutorials, etc, on line.  DESTDIR worked instead.

Now to try --with-sysroot with gcc and glibc. :)



VERSION=2.17

mkdir ../binutils-build &&
cd ../binutils-build &&

../binutils-${VERSION}/configure \
        --host=$HOST \
        --target=$TARGET \
        --prefix=/cross \              # Install in $SYSROOT/cross.
        --enable-shared \
        --disable-nls \
        --enable-64-bit-bfd \
        --disable-multilib             # Only build a 64-bit system.

make
make install DESTDIR=$SYSROOT


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

Reply via email to