Add -lm to sanitizer link arguments.

We'll need to intercept a few function in libm.

llvm-svn: 193644
This commit is contained in:
Evgeniy Stepanov
2013-10-29 19:48:47 +00:00
parent ae2f76fb78
commit 4ae68468cd

View File

@@ -1757,6 +1757,7 @@ static void addSanitizerRTLinkFlagsLinux(
CmdArgs.push_back("-lpthread");
CmdArgs.push_back("-lrt");
CmdArgs.push_back("-ldl");
CmdArgs.push_back("-lm");
// If possible, use a dynamic symbols file to export the symbols from the
// runtime library. If we can't do so, use -export-dynamic instead to export