[OpenAFS-port-darwin] Building i386 version on Mac OS X 10.6

Jonas Maebe jonas.maebe@elis.ugent.be
Wed, 26 Feb 2014 15:40:58 +0100


Hi,

How can I build OpenAFS 1.6.x (in particular 1.6.1 and 1.6.2) under  
10.6 for i386? By default, it builds for x86-64, which results in an  
unloadable kext for my system. I've already tried the following  
without avail:
* ./configure --build=i386-i386-apple-darwin10.8.0 (no effect)
* CFLAGS="-arch i386" ./configure --build=i386-i386-apple-darwin10.8.0  
(no effect)
* make ARCHFLAGS="-arch i386" (builds most things for i386, but then  
gives a linker error once shlib-build is called because that one  
ignores ARCHFLAGS and hence again tries to link for x86-64)

Thanks,


Jonas