cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

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

From: SourceForge.net <noreply_at_sourceforge.net>
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:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3307835&group_id=976

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: https://www.google.com/accounts ()
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/configure.ac works around this by eliminating the test when cross_compiling is set:

1625c1625,1629
< 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
Thanks,
Bill.
----------------------------------------------------------------------
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3307835&group_id=976
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