X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Farchive.cpp;h=4dee50899f123ad580b5f3f66997527446442fec;hb=1968c546cfb30214e8dc5afc722bec14aa8373f5;hp=11c633c39da54539d2fdd827cb831a8556aea2b3;hpb=1a46151c99a406123c4ddfc797a7841baf3e4cc2;p=builder.git diff --git a/source/archive.cpp b/source/archive.cpp index 11c633c..4dee508 100644 --- a/source/archive.cpp +++ b/source/archive.cpp @@ -1,9 +1,16 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include #include "archive.h" #include "builder.h" #include "component.h" #include "objectfile.h" -#include "package.h" +#include "sourcepackage.h" #include "staticlibrary.h" using namespace std; @@ -14,7 +21,7 @@ Archive::Archive(Builder &b, const StaticLibrary &lib): { const Component &comp=lib.get_component(); - argv.push_back("ar"); + argv.push_back(builder.get_tool("AR", comp.get_package().get_arch())); argv.push_back("rc"); argv.push_back(lib.get_name());