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

Jonas Maebe jonas.maebe@elis.ugent.be
Thu, 27 Feb 2014 14:10:17 +0100


On 26 Feb 2014, at 16:31, D Brashear wrote:

> On Wed, Feb 26, 2014 at 9:40 AM, Jonas Maebe <jonas.maebe@elis.ugent.be 
> >wrote:
>
>> 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)
>
>                ARCHFLAGS="-arch i386 -arch x86_64" ./configure
> --enable-transarc-paths --with-krb5 --enable-warnings --enable- 
> checking
> --enable-fuse-client
>                ARCHFLAGS="-arch i386 -arch x86_64" make dest
>                ARCHFLAGS="-arch i386 -arch x86_64" make packages

Thanks! I had to disable the building of the growl plugin though,  
because that one still ignored the ARCHFLAGS for some reason.


Jonas