Subject: Re: i386--netbsdelf-fdisk: __i386__ not defined?
To: David Young <dyoung@pobox.com>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-toolchain
Date: 10/15/2005 08:48:32
On Oct 14, 2005, at 11:44 AM, David Young wrote:

> I just built the fdisk cross-tool for i386 on Mac OS X, and -t and -T
> options were omitted.  I need those options.
>
> If __i386__ or __x86_64__ is defined, fdisk compiles in the BOOTSEL  
> code,
> including support for -t and -T options.  I guess that __i386__ is not
> defined when cross-fdisk is built.  Is there a more appropriate symbol
> to check in the C sources, or is make(1)-fu more appropriate?  E.g.,
>
> .if ${MACHINE} == "i386"
> CPPFLAGS+=-DBOOTSEL
> .endif

Add an "amd64" clause to that and then check it in. :-)


>
> Dave
>
> -- 
> David Young             OJC Technologies
> dyoung@ojctech.com      Urbana, IL * (217) 278-3933

-- thorpej