summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/opkbuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opkbuild b/src/opkbuild
index 22ea79d..af79e68 100644
--- a/src/opkbuild
+++ b/src/opkbuild
@@ -148,6 +148,9 @@ export OH_ARCH_CPU OH_ARCH_KERNEL OH_ARCH_LIBS
export OH_SRCPKG="${srcpkg}"
export OH_PKGVER=${version}
+# Set build flags.
+. @@DATADIR@@/opkhelper/buildflags/${OH_ARCH_CPU}
+
# Check build dependencies.
oh-checkbuilddeps || error "${srcpkg}-src"