Re: determining 32 v. 64 bit compilatio

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

 



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 <vapier@xxxxxxxxxx> 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
>

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux