X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flink.cpp;h=a7ea2c55df4374fc1149fedc0b4eaf4dc922785b;hb=654de39b62a9a58fd8e1b5a557361d628345788b;hp=2f688be4cbd73fb1788348a717de1df52bcdeb3c;hpb=0fd98b61eb112fe397c67b7735627b7bbdd01e41;p=builder.git diff --git a/source/link.cpp b/source/link.cpp index 2f688be..a7ea2c5 100644 --- a/source/link.cpp +++ b/source/link.cpp @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include #include "builder.h" #include "component.h" @@ -19,7 +26,7 @@ Link::Link(Builder &b, const Executable &exe): const Component &comp=exe.get_component(); //XXX Determine whether to use g++ or gcc - argv.push_back(builder.get_tool("LDXX", exe.get_package()->get_arch())); + argv.push_back(builder.get_tool("LDXX", comp.get_package().get_arch())); if(comp.get_type()==Component::LIBRARY || comp.get_type()==Component::MODULE) argv.push_back("-shared");