summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-04-11 22:22:34 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-04-11 22:22:34 (EDT)
commit8f9775da4b6a6985def8124df9e1ad74a3e4c22f (patch)
treeb05041b6e0a5f86e625e1838493fd6095e33b00a
parent26cb9b940013716a549e7cb8a9f37d2ffe97f405 (diff)
Only read build flags if they exist.
-rw-r--r--src/opkbuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index 0f397a4..8658ed5 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -178,7 +178,9 @@ export OH_SRCPKG="${srcpkg}"
export OH_PKGVER=${version}
# Set build flags.
-. @@DATADIR@@/opkhelper/buildflags/${OH_ARCH_CPU}
+if [ -f "@@DATADIR@@/opkhelper/buildflags/${OH_ARCH_CPU}" ]; then
+ . @@DATADIR@@/opkhelper/buildflags/${OH_ARCH_CPU}
+fi
# Check build dependencies.
oh-checkbuilddeps -s "${status_override}" || error "${srcpkg}-src"