cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Build 64 bit libCURL on Mac OS X 10.5.x

From: Michael Wood <esiotrot_at_gmail.com>
Date: Fri, 13 Feb 2009 15:59:16 +0200

On Fri, Feb 13, 2009 at 3:21 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Fri, 13 Feb 2009, Michael Han wrote:
>
>> My question is how could I tell configure that I want build 64 bit
>> libCURL? Alternatively I could modify the make file generated from configure
>> manually but that'll be the last thing I want to do.
>
> Well, to answer that question I'd have to first ask you: what gcc options
> etc are required for you to do this? Is -m64 enough?

Looks like it:

$ vi hello.c
$ gcc -Wall -W -o hello32 hello.c
$ gcc -Wall -W -m64 -o hello64 hello.c
$ file hello*
hello.c: ASCII c program text
hello32: Mach-O executable i386
hello64: Mach-O 64-bit executable x86_64
$ ./hello32
Hello, World!
$ ./hello64
Hello, World!

> If so, I figure something like this could work:
>
> 'CFLAGS=-m64 ./configure'

-- 
Michael Wood <esiotrot_at_gmail.com>
Received on 2009-02-13