> >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

> 1. The --with-sysroot will never work on binutils-1.17, even if you stand on 
> your head....  Take another _careful_ look at the output of 
> `binutils-1.17/configure --help` again as someone suggested earlier in the 
> thread.  For GCC it's called --with-sysroot, but for Binutils, it's called 
> (arguably more appropriately) --with-build-sysroot, so the option you gave 
> was probably silently ignored.
> 

I'll try using --with-build-sysroot and see what happens.

> 2. This option should definitely be limited to building a cross compiler 
> IMO.  The GCC documentation describes it as a cross compiler-specific 
> option.
> 
> 3. The DESTDIR variable and the --with-(build-)sysroot option are two 
> completely different things.
> 
> DESTDIR specifies an alternate location to copy the files to when you 
> install, without affecting any paths compiled into the binaries.  It's just 
> an extra prefix on the destination file path during install.
> 
> --with-(build-)sysroot is more like a search path used at build time to find 
> libraries and headers for the TARGET system.  (At least that's my 
> understanding from reading stuff in the INSTALL subdir of the Gcc 
> tree--recommend you look at that.  I'm assuming it works similarly for 
> Binutils.)

I think you're right about DESTDIR.

> BTW, if you've "done" LFS and want to check out cross-compiling in more 
> detail, have you tried first to follow the CLFS?  That is specifically 
> dedicated to cross-compiled LFS build, and should provide you with something 
> that works. Then you can experiment/learn by deviating from a working CLFS.

I've built CLFS and I'm using it as a guideline and it says how to do
it, but not always why, so I'm looking for more information and
experimenting to see what works and what breaks.  The breaking is very
easy.

-- 
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