X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flink.cpp;h=30fecfba29e49eac2fad7037bfd075a9deb618eb;hb=7aeaa4ba965f596edad438c02e345a8843f7469a;hp=4a96ff2e4da59b2bde1f1173584d863890f5b09a;hpb=09325a99816a966bc17a0ec9a0a197efc6ce0349;p=builder.git diff --git a/source/link.cpp b/source/link.cpp index 4a96ff2..30fecfb 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" @@ -18,10 +25,8 @@ Link::Link(Builder &b, const Executable &exe): { const Component &comp=exe.get_component(); - const string &prefix=b.get_arch_prefix(exe.get_package()->get_arch()); - //XXX Determine whether to use g++ or gcc - argv.push_back(prefix+"g++"); + argv.push_back(builder.get_tool("LDXX", exe.get_package()->get_arch())); if(comp.get_type()==Component::LIBRARY || comp.get_type()==Component::MODULE) argv.push_back("-shared");