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: Mon, 30 May 2011 12:12:31 +0200

Bugs item #3307835, was opened at 2011-05-26 08:34
Message generated for change (Comment added) made by bagder
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: Closed
>Resolution: Fixed
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
>Comment By: Daniel Stenberg (bagder)
Date: 2011-05-30 12:12
The spirit of this fix is now pushed in commit a87102c7923bb29302
Your exact patch was not working though as
A) the variable check is wrong (as it contains "no" when not
B) the $RANDOM_FILE variable isn't always set
You can respond by visiting:
Received on 2011-05-30

These mail archives are generated by hypermail.

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

File upload with ASP.NET