From d51892e33a0fe69e743e02d9620312133a7ac61d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Jan 2021 11:00:32 +0200 Subject: Use target name to derive binless library -l-name --- libbuild2/cc/common.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libbuild2/cc/common.cxx') diff --git a/libbuild2/cc/common.cxx b/libbuild2/cc/common.cxx index 9cac1b0..1bbdf14 100644 --- a/libbuild2/cc/common.cxx +++ b/libbuild2/cc/common.cxx @@ -950,6 +950,10 @@ namespace build2 // idea is that in .pc files that we generate, we copy those macros // (or custom ones) from *.export.poptions. // + // @@ Should we add .pc files as ad hoc members so pkconfig_save() can + // use their names when deriving -l-names (this would be expecially + // helpful for binless libraries to get hold of prefix/suffix, etc). + // if (pc.first.empty () && pc.second.empty ()) { if (!pkgconfig_load (act, *p.scope, -- cgit v1.1