Subject: Re: 64 bit packages on OS X?
To: John Klos <john@ziaspace.com>
From: Adrian Portelli <adrianp@stindustries.net>
List: tech-pkg
Date: 12/09/2007 23:27:21
John Klos wrote:
> Hi,
> 
> Does anyone know how to simply get OS X to build and use 64 bit packages
> on OS X? I've set CFLAGS, CCFLAGS, and CXXFLAGS to -arch x86_64 and
> ppc64 on Intel and PowerPC machines respectively, but bootstrap only
> gets to here:
> 
> gcc *.o lst.lib/*.o -o bmake.boot  -L../../libnbcompat -lnbcompat
> ld: warning in arch.o, file is not of required architecture
> ld: warning in buf.o, file is not of required architecture
> ....
> 
> Suggestions?
> 
> Thanks,
> John Klos

BTW:

I added the following to my mk.conf:

CFLAGS+=                        -arch x86_64
LDFLAGS+=                       -arch x86_64

and on an OS/X (10.4.11) Intel host with Xcode 2.5 I can build
devel/bmake without any issues.

$ file work/Darwin/bmake
work/Darwin/bmake: Mach-O 64-bit executable x86_64

adrian.