diff --git a/src/core/config/linux.pri b/src/core/config/linux.pri
index b56134ad9db698174b7ddc5fc069028d91d08b45..4ade28271633dc949ded94a0018ecd01b152e716 100644
--- a/src/core/config/linux.pri
+++ b/src/core/config/linux.pri
@@ -44,6 +44,7 @@ contains(QT_ARCH, "arm") {
     !isEmpty(MFLOAT): gn_args += arm_float_abi=\"$$MFLOAT\"
 
     MARCH = $$extractCFlag("-march=.*")
+    !isEmpty(MARCH): gn_args += arm_arch=\"$$MARCH\"
 
     MARMV = $$replace(MARCH, "armv",)
     !isEmpty(MARMV) {