How to make Boost dylibs universal (i386 & x86_64) on os x?
问题 I'm trying to compile a Boost library into a universal binary file (i.e. a "fat" file that contains builds for both the i386 and x86_64 architectures). Souring the internet and SO I assembled the following instructions. Download boost (e.g. from http://www.boost.org/users/download/) In the downloaded folder, type ./bootstrap.sh (or, in my case ./bootstrap.sh --with-libraries=thread , since I only need the thread library) type ./b2 install cxxflags="-arch i386 -arch x86" These steps installed