]> git.tdb.fi Git - builder.git/blobdiff - source/gnuccompiler.cpp
Make static library dependencies consistent with what the linker does
[builder.git] / source / gnuccompiler.cpp
index 8fc8b6c9da626d3d45344598cbf774fc4132bd50..7089a26ec341a1dfe3e0e8c2c5b18a3e5755d4b3 100644 (file)
@@ -4,13 +4,19 @@
 using namespace std;
 using namespace Msp;
 
-GnuCCompiler::GnuCCompiler(Builder &b):
-       GnuCompiler(b, "CC", "gcc")
+GnuCCompiler::GnuCCompiler(Builder &b, const Architecture &a):
+       GnuCompiler(b, a, "CC", "gcc")
 {
        input_suffixes.push_back(".c");
+       aux_suffixes.push_back(".h");
 }
 
 Target *GnuCCompiler::create_source(const Component &comp, const FS::Path &path) const
 {
        return new CSourceFile(builder, comp, path);
 }
+
+Target *GnuCCompiler::create_source(const FS::Path &path) const
+{
+       return new CSourceFile(builder, path);
+}