From 23827edd998db30dd1f0d6a14f09399aa7d07b69 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 13 May 2021 15:38:53 +0200 Subject: Add ${c,cxx}.find_system_{header,library}() functions --- 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 245109b..3130afa 100644 --- a/libbuild2/cc/common.cxx +++ b/libbuild2/cc/common.cxx @@ -322,6 +322,8 @@ namespace build2 // 2 - argument and next element (-l pthread, -framework CoreServices) // 0 - unrecognized/until the end (-Wl,--whole-archive ...) // + // See similar code in find_system_library(). + // auto sense_fragment = [&sys_simple, this] (const string& l) -> pair { @@ -627,6 +629,8 @@ namespace build2 // Note that pk's scope should not be NULL (even if dir is absolute). // + // Note: see similar logic in find_system_library(). + // target* common:: search_library (action act, const dir_paths& sysd, -- cgit v1.1