From c2cebaff2d38a18cc77c074fe50a235cb22fbc86 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 28 Sep 2012 15:31:13 +0300 Subject: [PATCH] Don't add a symlink with the same name as the file --- source/mingwdlltool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.45.2