aMule Bug Tracker - aMule
View Issue Details
0000930aMuleMulti Platformpublic2006-07-06 08:222006-09-08 11:24
Coronas 
GonoszTopi 
normalminoralways
resolvedno change required 
SVN 
 
Any
0000930: configure doesn't detect cross-compilation
When calling configure, cross-compilation is not reported, even when configure is given the correct options. The resulting binary, however, is built with the crosscompiler and working.
from configure:
...checking for powerpc-tuxbox-linux-gnu-gcc... powerpc-tuxbox-linux-gnu-gcc
checking whether we are using the GNU C compiler... yes
checking whether powerpc-tuxbox-linux-gnu-gcc accepts -g... yes
checking for powerpc-tuxbox-linux-gnu-gcc option to accept ANSI C... none needed
checking dependency style of powerpc-tuxbox-linux-gnu-gcc... gcc3
checking how to run the C preprocessor... powerpc-tuxbox-linux-gnu-gcc -E
checking for i686-pc-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
...
No tags attached.
Issue History
2006-07-06 08:22CoronasNew Issue
2006-07-06 08:22CoronasOperating System => Any
2006-07-06 08:36KryStatusnew => assigned
2006-07-06 08:36KryAssigned To => GonoszTopi
2006-09-08 11:24GonoszTopiStatusassigned => resolved
2006-09-08 11:24GonoszTopiResolutionopen => no change required
2006-09-08 11:24GonoszTopiNote Added: 0002099

Notes
(0002099)
GonoszTopi   
2006-09-08 11:24   
The current behaviour is correct. When checking for cross-compiler tools, we're cross-comiling, when checking for the build tools, we're not cross-compiling. Look:

$ ./configure --host=mingw32
[...]
checking for mingw32-g++... mingw32-g++
checking for C++ compiler default output file name... a.exe
checking whether the C++ compiler works... yes
checking whether we are cross compiling... yes
[...]
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no