binutils installation patch for cross-compiling

Tom Williams binutilstom@yahoo.com
Thu Jul 20 11:07:00 GMT 2000


The attached patch fixes a problem where
cross-compiling binutils from Unix targetting Mingw32
causes the cross tools to be installed with the ".exe"
file extension instead of no file extension at all
(i.e. i386-mingw-size.exe instead of
i386-mingw32-size).

With the configure command line options of:
--target=i386-mingw32 --host=i586-pc-linux-gnu
--build=i586-pc-linux-gnu, opcodes/configure was
passing "target" to ltconfig as "host" and ltconfig
thought the ".exe" was required because Mingw32 was
being targetted.  The patch passes "host" to ltconfig
in addition to "target" and ltconfig was changed to
make sure "target" *and* "host" were platforms which
required the ".exe" file extension.

Here is my attempt at a ChangeLog entry:

2000-07-20  Tom Williams   <binutilstom@yahoo.com>
	
	* configure (call to ../ltconfig): Changed call to
../ltconfig
	to set a new environment variable, "CROSSHOST", to
assist
	../ltconfig in determing the proper file extension
for the
	bintuils programs when cross compiling and targetting
a Win32
	target.


The patch is attached in GNU tar/GZip format.

Peace......

Tom

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/
binutils.patch.tar.gz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils.patch.tar.gz
Type: application/x-gzip
Size: 862 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20000720/78152293/attachment.bin>


More information about the Binutils mailing list