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

Re: architecture detection

On 20040927T192545-0400, Hubert Chan wrote:
> 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?

I assume what yuo really want to know is what architecture you are
compiling _for_ instead of _under_ (think cross-compilation).

The following is an excerpt from Policy (section 4.8):

"The architectures we build on and build for are determined by make
variables using the utility dpkg-architecture. You can determine the
Debian architecture and the GNU style architecture specification string
for the build machine (the machine type we are building on) as well as
for the host machine (the machine type we are building for)."

So, see dpkg-architecture(1) :)
Antti-Juhani Kaijanaho, Debian developer 


Attachment: signature.asc
Description: Digital signature

Reply to: