summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/buildsystem.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/buildsystem.sh b/lib/buildsystem.sh
index 6d3aa03..ef668f7 100644
--- a/lib/buildsystem.sh
+++ b/lib/buildsystem.sh
@@ -24,9 +24,6 @@ _OH_BUILDSYSTEMS='
autoconf
'
-_OH_BUILDSYSTEM_BUILD_DIR='src'
-_OH_BUILDSYSTEM_SYSTEM=''
-
oh_buildsystems_init()
{
_oh_local _ohbsi_bs
@@ -37,6 +34,11 @@ oh_buildsystems_init()
_OH_BUILDSYSTEM_WORK_AREA="${PWD}"
_OH_BUILDSYSTEM_SOURCE_DIR="$(cd src && pwd)"
+
+ [ -z "${_OH_BUILDSYSTEM_BUILD_DIR}" ] && \
+ _OH_BUILDSYSTEM_BUILD_DIR="${PWD}/src"
+ [ -z "${_OH_BUILDSYSTEM_SYSTEM}" ] && \
+ _OH_BUILDSYSTEM_SYSTEM=''
}
oh_set_buildsystem_option()