diff mbox series

[v1,openspdm,on,QEMU,CXL/PCIe,Device,1/2] build: gcc to CC in GNUMakefile

Message ID 1624665661-4903-1-git-send-email-cbrowy@avery-design.com (mailing list archive)
State New, archived
Headers show
Series Testing PCIe DOE in QEMU CXL/PCIe Device using openspdm | expand

Commit Message

Chris Browy June 26, 2021, 12:01 a.m. UTC
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 mbox series

Patch

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