eugenis added a comment. Does asan runtime library have libthr.so in DT_NEEDED? Would adding that help? If FreeBSD requires that everything built with ASan uses -pthread, then perhaps it is best done in the driver. https://reviews.llvm.org/D39254