From: Mikko Rasa Date: Fri, 28 Sep 2012 12:31:13 +0000 (+0300) Subject: Don't add a symlink with the same name as the file X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c2cebaff2d38a18cc77c074fe50a235cb22fbc86;p=builder.git Don't add a symlink with the same name as the file --- diff --git a/source/mingwdlltool.cpp b/source/mingwdlltool.cpp index 582963e..f76fb1c 100644 --- a/source/mingwdlltool.cpp +++ b/source/mingwdlltool.cpp @@ -41,7 +41,8 @@ Target *MingwDllTool::create_install(Target &target) const const Tool © = builder.get_toolchain().get_tool("CP"); InstalledFile *inst_tgt = dynamic_cast(copy.create_target(target)); string link_name = format("lib%s.dll.a", imp->get_shared_library()->get_libname()); - inst_tgt->set_symlink(link_name); + if(link_name!=FS::basename(inst_tgt->get_path())) + inst_tgt->set_symlink(link_name); return inst_tgt; } else