From: David Chisnall Date: Tue, 28 Feb 2012 20:06:45 +0000 (+0000) Subject: Add -lm by default on Solaris. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dbefe1b1ffbe1d69cc94d07368065976baa49a1;p=clang Add -lm by default on Solaris. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151653 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index c215724c56..14fb9cb718 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -4275,6 +4275,7 @@ void solaris::Link::ConstructJob(Compilation &C, const JobAction &JA, if (!Args.hasArg(options::OPT_shared)) { CmdArgs.push_back("-lgcc"); CmdArgs.push_back("-lc"); + CmdArgs.push_back("-lm"); } }