Use flags suitable for armhf port when TARGET=ARMV6
authorSébastien Villemot <sebastien@debian.org>
Thu, 17 Dec 2020 12:53:00 +0000 (12:53 +0000)
committerSébastien Villemot <sebastien@debian.org>
Thu, 17 Dec 2020 12:53:00 +0000 (12:53 +0000)
Forwarded: not-needed
Last-Update: 2015-04-29

See debian/rules for an explanation of why we can't use TARGET=ARMV7 on armhf.
Also, if we don't explicitly set the -march and -mfpu flags, the resulting
static libraries crash with SIGILL (reason not yet elucidated).
Last-Update: 2015-04-29
Gbp-Pq: Name arm-gcc-flags.patch

Makefile.arm

index a27b58e849bdd5272c07faa3274daf83f223a211..2b589fafe859c26f32bbdc29f67474ec2ea29086 100644 (file)
@@ -9,8 +9,8 @@ endif
 endif
 
 ifeq ($(CORE), ARMV6)
-CCOMMON_OPT += -mfpu=vfp
-FCOMMON_OPT += -mfpu=vfp
+CCOMMON_OPT += -mfpu=vfpv3-d16 -march=armv7-a
+FCOMMON_OPT += -mfpu=vfpv3-d16 -march=armv7-a
 endif
 
 ifdef HAVE_NEON