Panu Matilainen wrote:
On Wed, 18 Feb 2009, Dan Nicholson wrote:
On Wed, Feb 18, 2009 at 9:13 AM, Stepan Kasal <skasal@xxxxxxxxxx> wrote:
Actually, if you care about the host triplet used for rpm builds,
that's something where config.guess is not directly involved.
Most spec files call %configure. That macro calls configure with
option --build. With that option given, configure does not call
config.guess.
The advantage of setting --build correctly is that autoconf macros
will use test against the triplet will work as expected. For instance
AC_PROG_CC will search for gcc with the host triplet prefixed. Right
now, it searches for x86_64-unknown-linux-gnu-gcc. That's not how gcc
is installed on fedora (nor with the -gnu, but that's a separate
matter).
Right, there's /usr/bin/x86_64-redhat-linux-gcc instead, and quite
obviously the build tools should be configured to match within the
distro.
Please elaborate.
Unlike you're saying, it's actually not obvious.
/usr/bin/x86_64-redhat-linux-gcc only exists as legacy being installed
in parallel to /usr/bin/gcc for cases where people are violently passing
--build/--host/--target (such as current rpm).
But where does the redhat in the gcc name come from?
It originates from the value having been passed to GCC's --target as
part of configuring GCC.
Ralf
--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list