diff --git a/boost-base.jam b/boost-base.jam index 7ad12c267..143e6be6b 100644 --- a/boost-base.jam +++ b/boost-base.jam @@ -2567,8 +2567,8 @@ rule import ( modules + ) if $(d) { # Normalize the path relative to the invocation directory. - local p = [ simplify-path-tokens [ split-path $(d:R=$(SUBDIR)) ] ] $(n) ; - n = $(p:J=$(SLASH)) ; + n = [ root-paths $(n) : $(d:R=$(SUBDIR)) ] ; + n = [ root-paths $(n) : [ PWD ] ] ; search = ; # no searching; the path was specified. } diff --git a/v1/boost-base.jam b/v1/boost-base.jam index 7ad12c267..143e6be6b 100644 --- a/v1/boost-base.jam +++ b/v1/boost-base.jam @@ -2567,8 +2567,8 @@ rule import ( modules + ) if $(d) { # Normalize the path relative to the invocation directory. - local p = [ simplify-path-tokens [ split-path $(d:R=$(SUBDIR)) ] ] $(n) ; - n = $(p:J=$(SLASH)) ; + n = [ root-paths $(n) : $(d:R=$(SUBDIR)) ] ; + n = [ root-paths $(n) : [ PWD ] ] ; search = ; # no searching; the path was specified. }