From: Mikko Rasa Date: Wed, 18 Oct 2006 18:05:09 +0000 (+0000) Subject: Make sure to use absolute paths when looking for headers/libraries X-Git-Tag: 0.9~52 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b98c297b0826c78521e54a0120cf20737a9e2727;p=builder.git Make sure to use absolute paths when looking for headers/libraries --- 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;