+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
#include <msp/path/utils.h>
#include "builder.h"
#include "component.h"
{
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)
+ if(comp.get_type()==Component::LIBRARY || comp.get_type()==Component::MODULE)
argv.push_back("-shared");
else if(comp.get_package().get_library_mode()==ALL_STATIC)
argv.push_back("-static");