From 46e253464e22d45bf3f629c676efc559118b863b Mon Sep 17 00:00:00 2001 From: "fergus.henderson" Date: Fri, 24 Jul 2009 17:30:08 +0000 Subject: Pass "-c" to gcc for the Dotd_Case tests. This fixes a problem where this test was failing on some systems due to link errors when compiling C++ source files with "gcc foo.cpp". To link C++ code, you now need to use "g++ foo.cpp" or "gcc foo.cpp -lstdc++", even if the C++ code in question doesn't use any C++ library features. Rather than changing the code to use "g++" or "-lstdc++", I though it was better to avoid the link step entirely, since it is not needed for the things this test is testing, and removing it will speed up the test. Reviewed by Craig Silverstein. git-svn-id: http://distcc.googlecode.com/svn/trunk@706 01de4be4-8c4a-0410-9132-4925637da917 --- test/testdistcc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testdistcc.py b/test/testdistcc.py index 0501c1b..cdfb831 100755 --- a/test/testdistcc.py +++ b/test/testdistcc.py @@ -606,7 +606,7 @@ int main(void) { return 0; } def sourceFilename(self): return args.split()[0] def compileCmd(self): - return _gcc + " " + args + return _gcc + " -c " + args def runtest(self): self.compile() glob_result = glob.glob(dep_glob) -- cgit v1.2.1