X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flink.cpp;h=4a96ff2e4da59b2bde1f1173584d863890f5b09a;hb=09325a99816a966bc17a0ec9a0a197efc6ce0349;hp=2ff5a97e85060545194ab58b4832e219617bb542;hpb=57bdb055acb0453c75b22cb64f35cc0e817a2827;p=builder.git diff --git a/source/link.cpp b/source/link.cpp index 2ff5a97..4a96ff2 100644 --- a/source/link.cpp +++ b/source/link.cpp @@ -23,7 +23,7 @@ Link::Link(Builder &b, const Executable &exe): //XXX Determine whether to use g++ or gcc argv.push_back(prefix+"g++"); - 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");