make: Explicitly enable FPU on ARMv7 builds

Starting with gcc-11, Debian's armhf compiler no longer builds with
a default -mfpu= option. Instead it enables the FPU via an extension
to the -march flag (--with-arch=armv7-a+fp). criu's Makefile explicitly
passes its own -march=armv7-a setting, which overrides the +fp default,
so we end up with no FPU:

    cc1: error: '-mfloat-abi=hard': selected architecture lacks an FPU

Signed-off-by: Radostin Stoyanov <radostin@redhat.com>
This commit is contained in:
Salvatore Bonaccorso 2021-12-04 16:59:51 +00:00 committed by Andrei Vagin
parent d514bacb40
commit 4ab2facb24
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ ifeq ($(ARCH),arm)
ifeq ($(ARMV),6)
USERCFLAGS += -march=armv6
else ifeq ($(ARMV),7)
USERCFLAGS += -march=armv7-a
USERCFLAGS += -march=armv7-a+fp
else ifeq ($(ARMV),8)
# To build aarch32 on armv8 Travis-CI (see criu Makefile)
USERCFLAGS += -march=armv7-a