[cfe-commits] r150696 - /cfe/trunk/lib/Driver/Tools.cpp
David Chisnall
csdavec at swan.ac.uk
Thu Feb 16 08:00:47 PST 2012
Author: theraven
Date: Thu Feb 16 10:00:47 2012
New Revision: 150696
URL: http://llvm.org/viewvc/llvm-project?rev=150696&view=rev
Log:
Tweak link order on Solaris so that global ctors work.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=150696&r1=150695&r2=150696&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Feb 16 10:00:47 2012
@@ -4252,7 +4252,6 @@
} else {
CmdArgs.push_back(Args.MakeArgString(LibPath + "crti.o"));
}
- CmdArgs.push_back(Args.MakeArgString(LibPath + "crtn.o"));
}
CmdArgs.push_back(Args.MakeArgString("-L" + GCCLibPath));
@@ -4277,6 +4276,7 @@
if (!Args.hasArg(options::OPT_shared))
CmdArgs.push_back(Args.MakeArgString(GCCLibPath + "crtend.o"));
}
+ CmdArgs.push_back(Args.MakeArgString(LibPath + "crtn.o"));
addProfileRT(getToolChain(), Args, CmdArgs, getToolChain().getTriple());
More information about the cfe-commits
mailing list