]> git.tdb.fi Git - builder.git/blobdiff - source/link.cpp
Support building static libraries (but not using them yet)
[builder.git] / source / link.cpp
index 96089da8b58116ee24d95b9d57171bca04d0cd8c..8b4c56421089e34d8bee43ffbd378c28cfb1566d 100644 (file)
@@ -9,9 +9,11 @@
 using namespace std;
 using namespace Msp;
 
-Link::Link(Builder &b, const Executable &exe, const Component &comp):
+Link::Link(Builder &b, const Executable &exe):
        ExternalAction(b)
 {
+       const Component &comp=exe.get_component();
+
        argv.push_back("g++");
        
        if(comp.get_type()==Component::LIBRARY)