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

Re: architecture detection

On Mon, Sep 27, 2004 at 07:25:45PM -0400, Hubert Chan wrote:
> I maintain the hashcash package.  Recent upstream versions have
> included optimized assembly routines for MMX (x86) and Altivec (PPC).
> In order to compile these properly, I need to detect what architecture
> I am compiling under.  What is the suggested/easiest/best/proper/Debian
> way to do this?  The package does not use autoconf/automake, and
> currently depends on the user to determine the architecture (via "make
> x86", "make ppc-linux", "make generic", etc).

dpkg --print-architecture.

- Matt

Attachment: signature.asc
Description: Digital signature

Reply to: