Hi everyone (again). I thought I'd post some feedback regarding cross-compiling stunnel, which I have successfully done for an Arm based embedded system we use.
I had to edit the 'configure' script in order to remove three sections of code that just check for the cross compiling option, and if set simply exit (message 'cannot check for file existence when cross compiling'). This behaviour really isn't condusive to successful cross compiling. :-) So as I say I removed these sections of code.
Next, I configured with './configure --host=arm-linux', then 'make' and the rest are standard as usual.
Perhaps the configure script for future releases could be a little more friendly for those cross compiling? Editing the configure file shouldn't be necessary.
Martin van den Nieuwelaar wrote:
I had to edit the 'configure' script in order to remove three sections of code that just check for the cross compiling option, and if set simply exit (message 'cannot check for file existence when cross compiling'). This behaviour really isn't condusive to successful cross compiling. :-) So as I say I removed these sections of code.
Next, I configured with './configure --host=arm-linux', then 'make' and the rest are standard as usual.
On my system './configure --host=arm-linux' just displays the following message:
configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used.
and then configures stunnel without cross-compilation enabled.
I tried to find a step-by-step HOWTO on configuring cross-compilation on my Debian/Lenny, but I failed to build a valid gcc/binutils. Can you help me? It's hard for me to fix this issue since I can't reproduce it.
Mike
I wrote:
I tried to find a step-by-step HOWTO on configuring cross-compilation on my Debian/Lenny, but I failed to build a valid gcc/binutils. Can you
help
me? It's hard for me to fix this issue since I can't reproduce it.
I was able to reproduce this issue:
1. I added "deb http://www.emdebian.org/debian/ lenny main" to /etc/apt/sources.list
2. I installed a cross-compiler: apt-get install libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi gcc-4.3-arm-linux-gnueabi
3. I configured stunnel with: ./configure --host=arm-linux-gnueabi
Now I'm working on solution. 8-)
Mike