From 68dde99b399290c6cbdf79dbaa0bb77356b3d247 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 14 Dec 2017 09:38:51 +0200 Subject: Fix Windows linking issue --- build2/cc/link.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx index 623100b..c0ff10c 100644 --- a/build2/cc/link.cxx +++ b/build2/cc/link.cxx @@ -1018,6 +1018,10 @@ namespace build2 { if (l != nullptr) { + // Check if this library renders us out of date. + // + d.update = d.update || l->newer (d.mt); + // On Windows a shared library is a DLL with the import library as a // first ad hoc group member. MinGW though can link directly to DLLs // (see search_library() for details). @@ -1027,10 +1031,6 @@ namespace build2 d.cs.append (f); d.cs.append (l->path ().string ()); - - // Check if this library renders us out of date. - // - d.update = d.update || l->newer (d.mt); } else d.cs.append (p); -- cgit v1.1