diff options
-rw-r--r-- | src/opkbuild.sh | 4 |
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" |