autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: determining 32 v. 64 bit compilatio


From: Wesley Smith
Subject: Re: determining 32 v. 64 bit compilatio
Date: Tue, 29 Jun 2010 22:26:08 +0200

For 64bit builds, I need to #define x86_64 for a lib I'm using.  It
has nothing to do with the size of longs from my perspective, but
whether the binary is compiled for a 64 or 32 bit target.

wes

On Tue, Jun 29, 2010 at 9:39 PM, Mike Frysinger <address@hidden> wrote:
> On Tuesday, June 29, 2010 14:26:29 Wesley Smith wrote:
>> What's the appropriate way to determine 32 v. 64 bit compilation?
>
> what exactly is it you're concerned with ?  if it's sizes of specific types,
> then do as Bob said and check individual types.  you cannot make assumptions
> when the target is "64bits" or "32bits" because not everyone does a 64bit port
> the same.  case in point is the Windows 64bit port.  it does not define type
> sizes the way most people (like Linux 64bit) do.
>
>> I've looked into using:
>>
>> AC_CANONICAL_BUILD
>
> i also think you're confusing BUILD and HOST.  BUILD is where things are
> compiled while HOST is where things execute.  the vast majority of the time,
> HOST is what you want.
> -mike
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]