Skip to content

A patch file to enable you to compile universal binary (32bits + 64bits) libraries with clang under xcode 6.1.0.

Notifications You must be signed in to change notification settings

toolbits/boost_1_56_0_xcode610_universal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

boost_1_56_0_xcode610_universal

A patch file to enable you to compile universal binary (32bits + 64bits) libraries with clang under xcode 6.1.0.
This modification is not tested completely yet.
Only compile test was done.

I'm glad if someone tests everything and posts this to boost's official.

development environment:

o MacOS X 10.10
o MacOS X 10.9.5
o Xcode 6.1.0
o clang = Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
o boost_1_56_0

apply a patch

mv [clang-darwin.jam] boost_1_56_0/.

cd boost_1_56_0

mv clang-darwin.jam tools/build/src/tools/.

boost with clang (libc++ with C++11)

sudo rm -rf /usr/local/boost_libc++11

./bootstrap.sh --with-toolset=clang --prefix=/usr/local/boost_libc++11
./b2 toolset=clang architecture=x86 address-model=32_64 cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" threading=multi pch=off
sudo ./b2 install toolset=clang architecture=x86 address-model=32_64 cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" threading=multi pch=off

sudo mkdir /usr/local/boost_libc++11/lib/a
sudo mkdir /usr/local/boost_libc++11/lib/dylib
sudo mv /usr/local/boost_libc++11/lib/.a /usr/local/boost_libc++11/lib/a/.
sudo mv /usr/local/boost_libc++11/lib/
.dylib /usr/local/boost_libc++11/lib/dylib/.

boost with clang (libstdc++)

sudo rm -rf /usr/local/boost_libstdc++

./bootstrap.sh --prefix=/usr/local/boost_libstdc++
./b2 architecture=x86 address-model=32_64 cxxflags="-stdlib=libstdc++" linkflags="-stdlib=libstdc++" threading=multi pch=off
sudo ./b2 install architecture=x86 address-model=32_64 cxxflags="-stdlib=libstdc++" linkflags="-stdlib=libstdc++" threading=multi pch=off

sudo mkdir /usr/local/boost_libstdc++/lib/a
sudo mkdir /usr/local/boost_libstdc++/lib/dylib
sudo mv /usr/local/boost_libstdc++/lib/.a /usr/local/boost_libstdc++/lib/a/.
sudo mv /usr/local/boost_libstdc++/lib/
.dylib /usr/local/boost_libstdc++/lib/dylib/.

About

A patch file to enable you to compile universal binary (32bits + 64bits) libraries with clang under xcode 6.1.0.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published