Subject: Re: build paxctl on non-elf hosts
To: None <tech-toolchain@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-toolchain
Date: 11/21/2006 21:08:08
In article <20061121143331.GA25910@asim.lip6.fr>,
Manuel Bouyer  <bouyer@antioche.eu.org> wrote:
>-=-=-=-=-=-
>
>Hi,
>current tools fails to build on darwin because paxctl can't find elf.h.
>Would anyone object to the attached patch ? I think it's better to use
>our elf.h anyway, as the tool is supposed to operate on cross-compiled
>binaries.
>
>elf.h is sys/sys/exec_elf.h without the machdep defines, which paxctl
>doesn't use.

Sure, but why don't you add a define to protect the machdep header,
and then copy the header as needed instead of checking in a copy?

christos