From 8f9775da4b6a6985def8124df9e1ad74a3e4c22f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 11 Apr 2012 22:22:34 -0400 Subject: Only read build flags if they exist. --- 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" -- cgit v0.9.1