aboutsummaryrefslogtreecommitdiff
path: root/build2/cc
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc')
-rw-r--r--build2/cc/module.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/build2/cc/module.cxx b/build2/cc/module.cxx
index f619e5f..1c4e84c 100644
--- a/build2/cc/module.cxx
+++ b/build2/cc/module.cxx
@@ -137,6 +137,7 @@ namespace build2
{
lib_dirs = gcc_library_search_paths (ci.path, rs);
+#ifndef _WIN32
// Many platforms don't search in /usr/local/lib by default (but do
// for headers in /usr/local/include). So add it as the last option.
//
@@ -150,6 +151,7 @@ namespace build2
//
if (tt.system == "freebsd")
inc_dirs.push_back (dir_path ("/usr/local/include"));
+#endif
}
// If this is a new value (e.g., we are configuring), then print the