+#include "builder.h"
#include "component.h"
#include "objectfile.h"
#include "sourcepackage.h"
Msp::FS::Path StaticLibrary::generate_target_path(const Component &c)
{
- return c.get_package().get_out_dir()/("lib"+c.get_name()+".a");
+ const Architecture &arch = c.get_package().get_builder().get_current_arch();
+ return c.get_package().get_out_dir()/
+ arch.get_static_library_patterns().front().apply(c.get_name());
}