aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-02-04 09:01:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-02-04 09:01:36 +0200
commitb9d38eadae2fd9d933abb20893d2a3f822b0210e (patch)
treea2aeb2fb3cc86f39a0007d187fed142ce637a5e1 /libbuild2/cc
parentc68ec49334b072535d79dc52e0aafa05f0015cb8 (diff)
Add note to manual on specifying search paths in compiler mode
Diffstat (limited to 'libbuild2/cc')
-rw-r--r--libbuild2/cc/common.cxx2
-rw-r--r--libbuild2/cc/pkgconfig.cxx4
2 files changed, 5 insertions, 1 deletions
diff --git a/libbuild2/cc/common.cxx b/libbuild2/cc/common.cxx
index b949c2b..6030954 100644
--- a/libbuild2/cc/common.cxx
+++ b/libbuild2/cc/common.cxx
@@ -1040,6 +1040,8 @@ namespace build2
gcc_extract_library_search_dirs (v, r);
};
+ // Note that the compiler mode options are in sys_lib_dirs.
+ //
if (auto l = bs[c_loptions]) extract (*l, c_loptions);
if (auto l = bs[x_loptions]) extract (*l, x_loptions);
diff --git a/libbuild2/cc/pkgconfig.cxx b/libbuild2/cc/pkgconfig.cxx
index 3e25167..5d5a43c 100644
--- a/libbuild2/cc/pkgconfig.cxx
+++ b/libbuild2/cc/pkgconfig.cxx
@@ -74,7 +74,9 @@ namespace build2
#ifndef BUILD2_BOOTSTRAP
// Load package information from a .pc file. Filter out the -I/-L options
- // that refer to system directories.
+ // that refer to system directories. This makes sure all the system search
+ // directories are "pushed" to the back which minimizes the chances of
+ // picking up wrong (e.g., old installed version) header/library.
//
// Note that the prerequisite package .pc files search order is as follows:
//