X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flib%2Fbinarycomponent.cpp;h=0b5d3cf84d067c63b554af9c05f063415ca17074;hb=6ce67e1469bf62156ddf64e33644851f9064c6ed;hp=d29673a73761e72420dc398cae16044c435fd942;hpb=1ab0b29388ce71004b95bc6bec6d9ef3b4371e12;p=builder.git diff --git a/source/lib/binarycomponent.cpp b/source/lib/binarycomponent.cpp index d29673a..0b5d3cf 100644 --- a/source/lib/binarycomponent.cpp +++ b/source/lib/binarycomponent.cpp @@ -112,11 +112,14 @@ void BinaryComponent::create_targets() const } vector results; - results.reserve(2); + results.reserve(3); if(type==LIBRARY) { Tool &archiver = toolchain.get_tool("AR"); - results.push_back(linker.create_target(objs, "shared")); + Target *shlib = linker.create_target(objs, "shared"); + results.push_back(shlib); + if(Target *imp = linker.create_target(*shlib, "import")) + results.push_back(imp); results.push_back(archiver.create_target(objs)); } else if(type==MODULE)