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

Re: arch name

Russell Coker wrote:
> In my debian/rules I need to know the name of the architecture.  I need the 
> name that is used in Debian packages "i386" for Intel or "arm" for ARM.  
> uname gives "i686" and "armv4l" respectively (and presumably has similar 
> problems on other platforms).
> What do I do to get the generic name for the platform?

dpkg-architecture -qDEB_HOST_ARCH or
dpkg-architecture -qDEB_BUILD_ARCH



 .''`.  Rene Engelhard -- Debian GNU/Linux Developer
 : :' : http://www.debian.org | http://people.debian.org/~rene/
 `. `'  rene@debian.org | GnuPG-Key ID: 248AEB73
   `-   Fingerprint: 41FA F208 28D4 7CA5 19BB  7AD9 F859 90B0 248A EB73

Attachment: pgpCHhLWcAcJI.pgp
Description: PGP signature

Reply to: