Bug #3828
Updated by Davide Pesavento about 8 years ago
When one attempts to compile either ndn-cxx or NFD with address sanitizer, the linking with Boost step fails because "-pthread" is not specified in both the CXXFLAGS and LINKFLAGS. According to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69443, this is because the sanitizer provides pthread_create and no other pthread functions, causing waf to detect that no flag is required to use pthreads. This issue can be fixed by loading adding "-pthread" to the `sanitizers` waf tool last CXXFLAGS and LINKFLAGS in `wscript`. .waf-tools/sanitizers.py. Presumably, this issue affects ndn-tools as well.