summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2013-03-23 20:09:16 -0400
committerPeter Foley <pefoley2@verizon.net>2013-03-24 08:44:41 -0400
commitc8c19de5c0df85a31ceb5454da351ed13076e048 (patch)
tree4fa3b9ac94640e917667a59636fde9ca2f4adb25 /solenv
parentd1bc91ea645f490bd3da205c31fe45711d009f29 (diff)
fix liborcus on windows
Change-Id: I852b4e159f818854fd2ac5bdcd14343b2a628134
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gcc-wrappers/wrapper.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/solenv/gcc-wrappers/wrapper.cxx b/solenv/gcc-wrappers/wrapper.cxx
index 2b2f2338733f..a768eefaa362 100644
--- a/solenv/gcc-wrappers/wrapper.cxx
+++ b/solenv/gcc-wrappers/wrapper.cxx
@@ -103,7 +103,7 @@ string processccargs(vector<string> rawargs) {
args.append("-link -LIBPATH:"+(*i).substr(2));
}
else if(!(*i).compare(0,2,"-l")) {
- args.append((*i).substr(2)+"lib.lib");
+ args.append((*i).substr(2)+".lib");
}
else if(!(*i).compare(0,12,"-fvisibility")) {
//TODO: drop other gcc-specific options
@@ -132,7 +132,7 @@ int startprocess(string command, string args) {
sa.bInheritHandle=TRUE;
if(!CreatePipe(&childout_read,&childout_write,&sa,0)) {
- cerr << "Error: could not create sdtout pipe" << endl;
+ cerr << "Error: could not create stdout pipe" << endl;
exit(1);
}
@@ -141,6 +141,7 @@ int startprocess(string command, string args) {
si.hStdOutput=childout_write;
si.hStdError=childout_write;
+ // support ccache
size_t pos=command.find("ccache ");
if(pos != string::npos) {
args.insert(0,"cl.exe");