Subject: Re: building i386 code in an amd64 kernel
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: tech-toolchain
Date: 02/05/2006 18:43:48
On Sun, Feb 05, 2006 at 01:11:21PM +0100, Emmanuel Dreyfus wrote:
> For COMPAT_LINUX32, I need to build the i386 linux_sigcode in an amd64
> kernel. How can I do this with our build system?

You need to pass -32 to as.

I would guess something like

  CPUFLAGS.linux_sigcode.S = -32

should do it (since we don't seem to have a per-filenam AFLAGS variant).

Martin