diff options
author | P. J. McDermott <pjm@nac.net> | 2013-04-28 09:49:50 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-04-28 09:54:19 (EDT) |
commit | e1ba5dc4767ad9e6d245d61a981c34221d40ae58 (patch) | |
tree | de0a17fc933e243fe94c5c168c1ad29a9ddbc9cf /lib | |
parent | f6bd46a4856847e84703f6faa8ec2993b329f6ae (diff) |
Store absolute path in _OH_BUILDSYSTEM_SOURCE_DIR.
_oh_autoconf_configure() changes the current directory to
${_OH_BUILDSYSTEM_BUILD_DIR}, making the call to configure fail if a relative
path is given in oh-autoconfigure's -s option.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/buildsystem.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/buildsystem.sh b/lib/buildsystem.sh index f36eb52..db07666 100644 --- a/lib/buildsystem.sh +++ b/lib/buildsystem.sh @@ -59,7 +59,8 @@ oh_set_buildsystem_option() case "${_ohsbso_name}" in 'source-dir') - _OH_BUILDSYSTEM_SOURCE_DIR="${_ohsbso_value}" + _OH_BUILDSYSTEM_SOURCE_DIR="$(cd "${_ohsbso_value}" && \ + pwd)" ;; 'build-dir') _OH_BUILDSYSTEM_BUILD_DIR="${_ohsbso_value}" |