From e1ba5dc4767ad9e6d245d61a981c34221d40ae58 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 28 Apr 2013 09:49:50 -0400 Subject: 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. --- (limited to 'lib') 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}" -- cgit v0.9.1