Re: Reliable way to determine bitness of the kernel
Re: Reliable way to determine bitness of the kernel
- Subject: Re: Reliable way to determine bitness of the kernel
- From: Wim Lewis <email@hidden>
- Date: Tue, 22 Feb 2011 10:16:29 -0800
On 22 Feb 2011, at 10:09 AM, eveningnick eveningnick wrote:
> i have a kext (or, rather, 2 kexts - one built with -arch i386, another one
> with -arch x86_64). They should work on both OS X 10.5 and 10.6.
> i have an installing script, which looks like
> if [ `uname -a | grep x86_64 | wc -l` ge 1 ]; then
> cp -R "64bit.kext" "/Library/Extensions/"
> else
> cp -R "32bit.kext" "/Library/Extensions/"
I've never tried developing a kext, but is there a reason you can't lipo the two versions together to create a fat executable? Then the kernel will just automatically load the correct one.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden