mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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:
parent
d514bacb40
commit
4ab2facb24
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue