From a403f9b9ea460a0fb723cd7463e8623412fff901 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Wed, 14 Sep 2011 03:50:55 -0700 Subject: fuse4x-kext: Explicitly list architectures Build `i386` for Leopard and a fat binary for everything else. Failing to be explicit can cause `xcodebuild` to attempt building for more architectures than it really should. Fixes #7619. --- Library/Formula/fuse4x-kext.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/fuse4x-kext.rb b/Library/Formula/fuse4x-kext.rb index b391e756b..c67c8a09c 100644 --- a/Library/Formula/fuse4x-kext.rb +++ b/Library/Formula/fuse4x-kext.rb @@ -19,10 +19,11 @@ class Fuse4xKext < Formula "-configuration", "Release", "-alltargets", "MACOSX_DEPLOYMENT_TARGET=#{MACOS_VERSION}", - "SYMROOT=build" + "SYMROOT=build", + # Build a 32-bit kernel extension on Leopard and a fat binary for Snow + # Leopard/Lion. + "ARCHS=i386 #{'x86_64' unless MacOS.leopard?}", 'ONLY_ACTIVE_ARCH=NO' ] - # Don't build a multi-arch kext for Leopard---it will fail. - args.concat %w[ARCHS=i386 ONLY_ACTIVE_ARCH=NO] if MacOS.leopard? system "/usr/bin/xcodebuild", *args system "/bin/mkdir -p build/Release/fuse4x.kext/Support" -- cgit v1.2.3