On Sat, 29 Jul 2006 21:18:32 -0600, Dennis J Perkins wrote:
On Sun, 2006-07-30 at 01:59 +0200, Brandon Peirce wrote:
> 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.

No obligations :-)


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.

I don't claim to be an expert on this because I've never (yet) tried cross-compiling, although I plan to look into that at some point to compile an i486 system on my somewhat faster i686. But this is what I've managed to find out:

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.

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

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.

Brandon.


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