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:15:01
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

According to:

http://developer.apple.com/documentation/Darwin/Conceptual/64bitPorting/index.html#//apple_ref/doc/uid/TP40001064

-arch is a good start

Have a look at this as well:

http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/compiling/chapter_4_section_3.html

It mentions additional CFLAGS you need to set.  I was pointed to this
document when playing with fat binaries on OS/X using pkgsrc.  There may
be some hints in there for you as well.

If you could say what version of OS/X your on, what architecture your
build host is and name a package you're having issues with then I might
be able to help you out a little more.

thanks,

adrian.