This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/22330] Building a cross linux->win32 incorrectly sets HAVE_GAS_SHF_MERGE true
- From: "ovidr at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2005 21:24:38 -0000
- Subject: [Bug bootstrap/22330] Building a cross linux->win32 incorrectly sets HAVE_GAS_SHF_MERGE true
- References: <20050706210825.22330.ovidr@users.sourceforge.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ovidr at users dot sourceforge dot net 2005-07-07 21:24 -------
I don't know how to do that with the current configure.
Build != Host
--build=i686-pc-linux-gnu --host=i686-pc-mingw32 --target=i686-pc-mingw32
>From configure.ac:
# If build != host, and we aren't building gas in-tree, we identify a
# build->target assembler and hope that it will have the same features
# as the host->target assembler we'll be using.
(which is wrong in this case)
And configure.ac is using 'test -x' on environment variables $AS and
$AS_FOR_TARGET, which always have their paths stripped, so I can't set it
to "/home/gcc/build/crossgcc/bin/i686-pc-mingw32-as" or "i686-pc-mingw32-as"
and pass the "test -x" test, even though that is the $AS that will ultimately
be used to assemble.
Manually changing the "elif test -x "$AS_FOR_TARGET"; then" line in
gcc/configure to "-n" makes it use the env variable, and sets
HAVE_GAS_SHF_MERGE 0, which is what I want, but I doubt this is the right way
to do it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22330