cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [Cross-compiling] "#error "CURL_SIZEOF_LONG definition is missing!""

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 10 Jun 2011 23:50:49 -0700

On Sat, Jun 11, 2011 at 08:35:01AM +0200, Michael Wood wrote:
> On 11 June 2011 01:34, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> > You should be able to use a configure line something like this instead:
> >
> > ./configure --host=bfin-linux-uclibc --disable-gpg \
> >  CPPFLAGS=`/path/to/install/curl-config --cflags` \
> >  LDFLAGS=`-static /path/to/install/curl-config --static-libs`
>
> I suppose you meant something like this?
>
> LDFLAGS="-static `/path/to/install/curl-config --static-libs`"

Sorry, that's what I meant :-)

> Does this work with a cross-compiled curl, though? (I haven't tried it.)

Yes, as long as you use the curl-config installed by the cross-compiled
library and not some other one installed on the system.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-11