Re: How to detect 32 or 64 bit at build time?
Andreas Tille wrote:
> On Mon, Sep 07, 2009 at 12:58:59PM +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.
>
> Cool, the version in unstable is the key.
This is nice, indeed.
$ dpkg-architecture -qDEB_BUILD_ARCH_BITS
64
but karmic does not know about this yet, which would be a "no" for the grid packages at least.
What we have in debian/rules of the Globus packages is
DEB_BUILD_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
ifneq (,$(filter $(DEB_HOST_ARCH_CPU), amd64 alpha ia64 s390x ppc64 sparc64))
flavor = gcc64pthr
enable64 = yes
else
flavor = gcc32pthr
enable64 = no
endif
One could obviously combine the two approaches ...
Steffen
Reply to: