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

Re: How to detect 32 or 64 bit at build time?



On 2009-09-07 12:32 +0200, Andreas Tille wrote:

> Hi,
>
> the new version of arb I want to package requires to set a variable
>
>    ARB_64=0/1            1=>compile 64 bit version
>
> to specify whether it will be compiled on 32 or 64 bit architecture.  Is
> there any safe way to set this variable automatically from environment?
> I expected dpkg-architecture to provide this information but it does not.
>
> Am I missing something?

How about DEB_HOST_ARCH_BITS?  This needs dpkg 1.15.4, though.

Sven


Reply to: