Re: Trouble cross compiling

Ian Abbott wrote:

>On 07/07/06 13:53, Jesper Larsen wrote:
>  
>
>>Ian Abbott wrote:
>>
>>    
>>
>>>On 07/07/06 08:41, Jesper Larsen wrote:
>>>
>>>      
>>>
>>>>My next (minor) problem is that the host strip command is used instead
>>>>of the target strip command. (In my case strip instead of
>>>>powerpc-linux-strip).
>>>>Because of this, "make install" fails.
>>>>        
>>>>
>
>  
>
>>checking for strip... (cached) /usr/bin/strip
>>
>>So it is actually checking for powerpc-linux-strip, but when running
>>make install it uses strip:
>>    
>>
>
>So there are three checks for strip altogether (or two checks if _not_
>cross-compiling), all but the first of which are wrong.  I think you can
>fix it as follows:
>
>In 'configure.ac', look for "AC_PATH_PROG(STRIP,strip)" (line 35).
>Change "AC_PATH_PROG" to "AC_PATH_TOOL".  Also, you might as well change
>"STRIP" to "[STRIP]" and "strip" to "[strip]" for consistency.
>
>Do the same thing in 'm4/as-modtool.m4' (line 31).
>
>  
>

That fixed it, thank you.

Will this be fixed in CVS? (should I submit a patch?)

-- 
Kind regards

Jesper Larsen

Received on 2006-07-09Z10:19:08