From 6feaa13453d5071f340f405075c3ea880dc23ac1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Oct 2018 11:30:15 +0200 Subject: Fix bug in binless library linking logic --- build2/cc/pkgconfig.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'build2/cc/pkgconfig.cxx') diff --git a/build2/cc/pkgconfig.cxx b/build2/cc/pkgconfig.cxx index a752348..26b0aea 100644 --- a/build2/cc/pkgconfig.cxx +++ b/build2/cc/pkgconfig.cxx @@ -1093,14 +1093,9 @@ namespace build2 // the saving logic). // pkgconf& ipc (sp.empty () ? apc : spc); // Interface package info. - bool ibl (sp.empty () // Binless. - ? at->path ().empty () - // - // On Windows the shared library could be a DLL with an empty - // path (unknown location) and an ad hoc member that is the - // import library. See search_library() for details. - // - : st->path ().empty () && st->member == nullptr); + bool ibl ((sp.empty () + ? at->mtime () + : st->mtime ()) == timestamp_unreal); // Binless. bool pa (at != nullptr && !ap.empty ()); if (pa || sp.empty ()) -- cgit v1.1