]> git.tdb.fi Git - builder.git/commitdiff
Don't add a symlink with the same name as the file
authorMikko Rasa <tdb@tdb.fi>
Fri, 28 Sep 2012 12:31:13 +0000 (15:31 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 28 Sep 2012 12:31:13 +0000 (15:31 +0300)
source/mingwdlltool.cpp

index 582963ea090acea480bd82c01462fa58faf5cf34..f76fb1cc883d2a3c2b44b910623f5d7b10bcd155 100644 (file)
@@ -41,7 +41,8 @@ Target *MingwDllTool::create_install(Target &target) const
                const Tool &copy = builder.get_toolchain().get_tool("CP");
                InstalledFile *inst_tgt = dynamic_cast<InstalledFile *>(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