cURL / Mailing Lists / curl-library / Single Mail

curl-library

patch for cross-compile

From: Ben Greear <greearb_at_candelatech.com>
Date: Sat, 03 May 2003 16:45:07 -0700

In order to get cross-compile to work, the exit(1) code
needs to be removed from the ./configure script when checking
for writeable argv.

Near line 10805, code should look more like this I believe:

echo "$as_me:$LINENO: checking if argv can be written to" >&5
echo $ECHO_N "checking if argv can be written to... $ECHO_C" >&6
if test "$cross_compiling" = yes; then
   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   }
else
....

Seems to have worked for me (yet to really test it though)...

For posterity's sake, I did this:

           export PATH=$PATH:/usr/local/arm/2.95.3/bin/; \
           export CC=arm-linux-gcc; \
           export LD=arm-linux-ld; \
           export AR=arm-linux-ar; \
           export AS=arm-linux-as; \
           export NM=arm-linux-nm; \
           export RANLIB=arm-linux-ranlib; \
           ./configure --build=i586-pc-linux-gnu --host=arm-linux \
             --with-random=/dev/urandom --with-ssl=no; \

-- 
Ben Greear <greearb_at_candelatech.com>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-05-04