On 01/16/16 19:21, Bryan Kadzban wrote:
Tim Tassonis wrote:
On 01/16/16 17:54, Daniel Schepler wrote:
On Sat, Jan 16, 2016 at 8:36 AM, Tim Tassonis <[email protected]>
wrote:
As "we" initially define our own target as

LFS_TGT=$(uname -m)-lfs-linux-gnu

wouldn't it be nicer to set this target here accordingly, as:

../gcc-5.3.0/configure \ --prefix=/usr \ --target=$LFS_TGT \
--enable-languages=c,c++ \ --disable-multilib \
--disable-bootstrap \ --with-system-zlib


, resulting in a gcc with files containing x86_64-lfs-linux-gnu
instead of x86_64-unknown-linux-gnu ?


Or am I missing something that makes this a bad idea?

First of all, unless you're building a cross-compiler, you
shouldn't be specifying --target; you should use --build=$LFS_TGT
instead if you really want to adjust the full compiler names.
(Same goes for binutils.  It would also work to specify all three
explicitly: --build=$LFS_TGT --host=$LFS_TGT --target=$LFS_TGT .)

Thanks, I'll try with --build, then.


Also, according to this from 4.4, LFS_TGT is meant to be just for
the intermediate tools and the final compiler build is
intentionally left to use the default name:

The LFS_TGT variable sets a non-default, but compatible machine
description for use when building our cross compiler and linker and
  when cross compiling our temporary toolchain. More information is
contained in Section 5.2, “Toolchain Technical Notes”.


The intention to finally use the default "unknown" vendor however is
not really explained. I assumed, as we are the builder of the whole
system, this would make us the "vendor"?

Well, config.guess will never print out x86_64-lfs-linux-gnu for other
packages, is an issue I see.  It has no idea that you mean something
different by "vendor" than it does.  :-)

If other packages really do need to know the vendor that the system
builder has chosen for gcc and binutils, then either they can ask gcc (I
think), or the system builder has to either choose an already-existing
string, or go modify config.guess and wait (for basically years) until
all the packages pick up the new version.

I didn't know about config.guess. This would then probably mean that I would have to specify

 --build=$LFS_TGT --host=$LFS_TGT --target=$LFS_TGT


on every package's configure? That certainly would be quite a downside.

I think I'll leave that to unknown then for the moment.


Thanks a lot for the clarifications.


Kind regards
Tim


--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to