use gcc 11 from gcc-toolset for RHEL8

This commit is contained in:
2022-06-10 09:02:08 +02:00
parent ea0b05c32b
commit 1bfe3dec3c
2 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,2 @@
# Include definitions common to linux pentium targets
include $(CONFIG)/os/CONFIG.Common.linux-x86_64
# highest c++ standard that is compiler can do
STD_CXXFLAGS = -std=c++2a

View File

@@ -1,2 +1,8 @@
# Include common linux definitions
include $(CONFIG)/os/CONFIG.linux-x86.linux-x86
# Use gcc 11 from gcc-toolset-11
GNU_BIN = /opt/rh/gcc-toolset-11/root/usr/bin
# Fix bug in gcc-toolset-11 calling the old assembler
TARGET_CFLAGS = -B$(GNU_BIN)
STD_CXXFLAGS = -std=c++17