Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3307835 ] patch for cross compilation for libcurl-7.21.6

From: <>
Date: Thu, 26 May 2011 06:34:33 +0000

Bugs item #3307835, was opened at 2011-05-26 06:34
Message generated for change (Tracker Item Submitted) made by
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compile or build problem
Group: portability problem
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: ()
Assigned to: Daniel Stenberg (bagder)
Summary: patch for cross compilation for libcurl-7.21.6

Initial Comment:
When cross compiling libcurl the test for the existence of /dev/random (or $RANDOM) file fails as a result of cross_compiling being set in the environment.

The following patch for libcurl-7.21.6/ works around this by eliminating the test when cross_compiling is set:

< AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] )

>         if test -z "$cross_compiling"; then
>             AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] )
>         else
>             echo "Not checking for existence of $RANDOM_FILE when cross_compil ing"
>           fi
You can respond by visiting:
Received on 2011-05-26

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET