From b98c297b0826c78521e54a0120cf20737a9e2727 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 18 Oct 2006 18:05:09 +0000 Subject: [PATCH] Make sure to use absolute paths when looking for headers/libraries --- source/builder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/builder.cpp b/source/builder.cpp index e9491eb..274b153 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -191,7 +191,7 @@ Target *Builder::get_header(const string &include, const string &from, const lis if((tgt=check_header(Path::Path("/usr/include/c++/4.1.2")/fn))) return tgt; for(list::const_iterator j=path.begin(); j!=path.end(); ++j) - if((tgt=check_header(Path::Path(*j)/fn))) + if((tgt=check_header(Path::getcwd()/ *j/fn))) return tgt; return 0; @@ -211,7 +211,7 @@ Target *Builder::get_library(const string &lib, const list &path) string basename="lib"+lib+".so"; for(list::const_iterator j=path.begin(); j!=path.end(); ++j) { - string full=(Path::Path(*j)/basename).str(); + string full=(Path::getcwd()/ *j/basename).str(); Target *tgt=get_target(full); if(tgt) return tgt; -- 2.43.0