Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Makefile: fix build issue on old gcc
The previous fcf-protection fix broke the old gcc (older than
gcc 8 which is common on Ubuntu 18.04 and older distributions).

We only add fcf-protection=none for gcc8 and newer.

Tracked-On: #4358
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
  • Loading branch information
fyin1 authored and wenlingz committed Feb 24, 2020
1 parent f3a4b23 commit 2ca0120
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hypervisor/Makefile
Expand Up @@ -102,7 +102,9 @@ endif
# https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1830961
#
# We disable the -fcf-protection in ACRN build.
ifeq (true, $(shell [ $(GCC_MAJOR) -gt 8 ] && echo true))
CFLAGS += -fcf-protection=none
endif

ASFLAGS += -m64 -nostdinc -nostdlib

Expand Down

0 comments on commit 2ca0120

Please sign in to comment.