I am attempting to build boost libraries for all supported architectures using ndk r8d. Arm, armv7, and x86 all went off without a hitch, but mips is giving me an error:
./boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavailable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
After a little investigation, I found this difference in the headers:
$ find android-ndk-r8d/ -name c++config.h | xargs grep GTHR_DEFAULT | grep 4.6
android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.6/libs/mips/include/bits/c++config.h:/* #undef _GLIBCXX_HAVE_GTHR_DEFAULT */
android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.6/libs/x86/include/bits/c++config.h:#define _GLIBCXX_HAVE_GTHR_DEFAULT 1
android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include/bits/c++config.h:#define _GLIBCXX_HAVE_GTHR_DEFAULT 1
android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/include/bits/c++config.h:#define _GLIBCXX_HAVE_GTHR_DEFAULT 1
Has anyone been able to successfully build boost_thread for mips? Is this a bug/misconfiguration in the mips toolchain?