From 0aaf68afe1e318f6bcf1180e2c769fbd8266f318 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Tue, 8 Mar 2022 10:51:18 +0000 Subject: [PATCH] u-cc-627 Forwarded: https://github.com/alexcrichton/cc-rs/pull/627 Gbp-Pq: Name u-cc-627.patch --- vendor/cc/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vendor/cc/src/lib.rs b/vendor/cc/src/lib.rs index 2de245717c..abc346ca15 100644 --- a/vendor/cc/src/lib.rs +++ b/vendor/cc/src/lib.rs @@ -1627,6 +1627,11 @@ impl Build { && target.contains("-linux-") { cmd.args.push("-march=armv7-a".into()); + + if target.ends_with("eabihf") { + // lowest common denominator FPU + cmd.args.push("-mfpu=vfpv3-d16".into()); + } } // (x86 Android doesn't say "eabi") -- 2.30.2