aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/boost.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/boost.rb b/Library/Formula/boost.rb
index 30149bac7..a21118f36 100644
--- a/Library/Formula/boost.rb
+++ b/Library/Formula/boost.rb
@@ -104,9 +104,12 @@ class Boost < Formula
if MacOS.version >= :lion and build.include? 'with-c++11'
args << "toolset=clang" << "cxxflags=-std=c++11"
args << "cxxflags=-stdlib=libc++" << "cxxflags=-fPIC"
+ args << "cxxflags=-arch x86_64" if MacOS.prefer_64_bit? or build.universal?
+ args << "cxxflags=-arch i386" if !MacOS.prefer_64_bit? or build.universal?
args << "linkflags=-stdlib=libc++"
args << "linkflags=-headerpad_max_install_names"
- args << "linkflags=-arch x86_64"
+ args << "linkflags=-arch x86_64" if MacOS.prefer_64_bit? or build.universal?
+ args << "linkflags=-arch i386" if !MacOS.prefer_64_bit? or build.universal?
end
args << "address-model=32_64" << "architecture=x86" << "pch=off" if build.universal?