aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/pkgconfig.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-10-18 11:30:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-10-18 11:30:15 +0200
commit6feaa13453d5071f340f405075c3ea880dc23ac1 (patch)
treeceb957c16237e28d0bba5c2f42a2efb272a2b3cc /build2/cc/pkgconfig.cxx
parent52019768ddc64f25416a692461a472bc2be2c7a7 (diff)
Fix bug in binless library linking logic
Diffstat (limited to 'build2/cc/pkgconfig.cxx')
-rw-r--r--build2/cc/pkgconfig.cxx11
1 files changed, 3 insertions, 8 deletions
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 ())