diff options
-rw-r--r-- | src/ob-buildenv.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ob-buildenv.sh b/src/ob-buildenv.sh index 104ade4..fc7c472 100644 --- a/src/ob-buildenv.sh +++ b/src/ob-buildenv.sh @@ -21,6 +21,9 @@ set -eu setup_build_helper() { + local dep= + local dep_pkg= + IFS=', ' for dep in $(ob_get_source_parameter 'Build-Depends'); do unset IFS @@ -39,8 +42,10 @@ setup_build_helper() setup_toolchain() { - # This check is done to allow at least native building on unsupported OSes. - # It may be removed in the future. + local tool_prefix= + + # This check is done to allow at least native building on unsupported + # OSes. It may be removed in the future. if [ x"${OPK_BUILD_ARCH}" != x"${OPK_HOST_ARCH}" ]; then tool_prefix="${OPK_HOST_ARCH}-" else @@ -73,6 +78,8 @@ setup_toolchain() setup_build_flags() { + local build_flags= + build_flags="$(ob_get_system_path 'buildflags' "${OPK_HOST_ARCH}")" if [ -r "${build_flags}" ]; then . "${build_flags}" |