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

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



On Tue, Sep 08, 2009 at 12:05:55AM -0400, Felipe Sateler wrote:
> Sven Joachim wrote:
> 
> > On 2009-09-07 12:54 +0200, Sven Joachim wrote:
> > 
> >> How about DEB_HOST_ARCH_BITS?  This needs dpkg 1.15.4, though.
> > 
> > Sorry, that should have been DEB_BUILD_ARCH_BITS.
> 
> As Neil would have pointed out if he were still subscribed to -mentors, 
> DEB_BUILD_* is almost always the wrong choice, otherwise it will cross-build 
> incorrectly.

Note it's always a pain that dpkg-architecture and autoconf use the same
word for an opposite meaning.

autoconf     dpkg-architecture
host         DEB_BUILD_
target       DEB_HOST_

Mike


Reply to: