Re: How to detect 32 or 64 bit at build time?
On 2009-09-08 06:05 +0200, 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.
Thanks for correcting me, I always mix build and host up. :-/
While we're at it, it is dpkg-dev (>=1.15.4) that you need to
build-depend upon for this feature, rather than dpkg:
,----
| (zsh) % dpkg -S =dpkg-architecture
| dpkg-dev: /usr/bin/dpkg-architecture
`----
Sven
Reply to: