boost: fix universal build with c++11

specify linkflags & cxxflags explicitly

Fixes Homebrew/homebrew#17084.
Closes Homebrew/homebrew#17122.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Nikolay Kasyanov 2013-01-16 11:00:25 +04:00 committed by Adam Vandenberg
parent 2681b803d9
commit 84b22a8e13
1 changed files with 4 additions and 1 deletions

View File

@ -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?