[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 openspdm on QEMU CXL/PCIe Device 1/2] build: gcc to CC in GNUM
From: |
Chris Browy |
Subject: |
[PATCH v1 openspdm on QEMU CXL/PCIe Device 1/2] build: gcc to CC in GNUMakefile |
Date: |
Fri, 25 Jun 2021 20:01:01 -0400 |
From: hchkuo <hchkuo@avery-design.com.tw>
Modified gcc to CC in GNUMakefile, so that we can specify the gcc version
Signed-off-by: Chris Browy <cbrowy@avery-design.com>
---
GNUmakefile.Flags | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/GNUmakefile.Flags b/GNUmakefile.Flags
index 3586284..33baceb 100644
--- a/GNUmakefile.Flags
+++ b/GNUmakefile.Flags
@@ -114,9 +114,9 @@ else ifeq ("$(TOOLCHAIN)","GCC")
CMOCKA_FLAGS = -std=gnu99 -Wpedantic -Wall -Wshadow -Wmissing-prototypes
-Wcast-align -Werror=address -Wstrict-prototypes -Werror=strict-prototypes
-Wwrite-strings -Werror=write-strings -Werror-implicit-function-declaration
-Wpointer-arith -Werror=pointer-arith -Wdeclaration-after-statement
-Werror=declaration-after-statement -Wreturn-type -Werror=return-type
-Wuninitialized -Werror=uninitialized -Werror=strict-overflow
-Wstrict-overflow=2 -Wno-format-zero-length -Wmissing-field-initializers
-Wformat-security -Werror=format-security -fno-common -Wformat -fno-common
-fstack-protector-strong
CC_FLAGS += --coverage -fprofile-arcs -ftest-coverage
- SLINK = gcc-ar
+ SLINK = $(CC)-ar
- DLINK = gcc
+ DLINK = $(CC)
DLINK_OBJECT_FILES = -Wl,--start-group,@$(OUTPUT_DIR)/tmp.list,--end-group
DLINK_FLAGS = -o $(BIN_DIR)/$(BASE_NAME) -flto -L/usr/X11R6/lib
DLINK_FLAGS2 = -Wno-error -no-pie
--
1.8.3.1