Skip to content

Commit

Permalink
fuse4x-kext: Explicitly list architectures
Browse files Browse the repository at this point in the history
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 Homebrew#7619.
  • Loading branch information
Sharpie committed Sep 14, 2011
1 parent 85ead60 commit a403f9b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Library/Formula/fuse4x-kext.rb
Expand Up @@ -19,10 +19,11 @@ def install
"-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"
Expand Down

0 comments on commit a403f9b

Please sign in to comment.