From 710d3eae4ceb981e5f39c79c971c6efa05bf0ee7 Mon Sep 17 00:00:00 2001 From: crdong Date: Fri, 23 Oct 2015 21:49:11 +0800 Subject: [PATCH] fix CC assignment in Makefiles of answers --- labcodes_answer/lab3_result/Makefile | 2 +- labcodes_answer/lab4_result/Makefile | 2 +- labcodes_answer/lab5_result/Makefile | 2 +- labcodes_answer/lab6_result/Makefile | 2 +- labcodes_answer/lab7_result/Makefile | 2 +- labcodes_answer/lab8_result/Makefile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/labcodes_answer/lab3_result/Makefile b/labcodes_answer/lab3_result/Makefile index 83adb86..8184802 100644 --- a/labcodes_answer/lab3_result/Makefile +++ b/labcodes_answer/lab3_result/Makefile @@ -47,7 +47,7 @@ HOSTCFLAGS := -g -Wall -O2 GDB := $(GCCPREFIX)gdb -CC ?= $(GCCPREFIX)gcc +CC := $(GCCPREFIX)gcc CFLAGS := -fno-builtin -Wall -ggdb -m32 -gstabs -nostdinc $(DEFS) CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector) CTYPE := c S diff --git a/labcodes_answer/lab4_result/Makefile b/labcodes_answer/lab4_result/Makefile index b655595..e6648f1 100644 --- a/labcodes_answer/lab4_result/Makefile +++ b/labcodes_answer/lab4_result/Makefile @@ -47,7 +47,7 @@ HOSTCFLAGS := -g -Wall -O2 GDB := $(GCCPREFIX)gdb -CC ?= $(GCCPREFIX)gcc +CC := $(GCCPREFIX)gcc CFLAGS := -fno-builtin -Wall -ggdb -m32 -gstabs -nostdinc $(DEFS) CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector) CTYPE := c S diff --git a/labcodes_answer/lab5_result/Makefile b/labcodes_answer/lab5_result/Makefile index 3ebf64c..8f3f2d9 100644 --- a/labcodes_answer/lab5_result/Makefile +++ b/labcodes_answer/lab5_result/Makefile @@ -47,7 +47,7 @@ HOSTCFLAGS := -g -Wall -O2 GDB := $(GCCPREFIX)gdb -CC ?= $(GCCPREFIX)gcc +CC := $(GCCPREFIX)gcc CFLAGS := -fno-builtin -Wall -ggdb -m32 -gstabs -nostdinc $(DEFS) CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector) CTYPE := c S diff --git a/labcodes_answer/lab6_result/Makefile b/labcodes_answer/lab6_result/Makefile index 4a2caf8..fcfb99e 100644 --- a/labcodes_answer/lab6_result/Makefile +++ b/labcodes_answer/lab6_result/Makefile @@ -47,7 +47,7 @@ HOSTCFLAGS := -g -Wall -O2 GDB := $(GCCPREFIX)gdb -CC ?= $(GCCPREFIX)gcc +CC := $(GCCPREFIX)gcc CFLAGS := -fno-builtin -Wall -ggdb -m32 -gstabs -nostdinc $(DEFS) CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector) CTYPE := c S diff --git a/labcodes_answer/lab7_result/Makefile b/labcodes_answer/lab7_result/Makefile index 53da09a..73124c4 100644 --- a/labcodes_answer/lab7_result/Makefile +++ b/labcodes_answer/lab7_result/Makefile @@ -47,7 +47,7 @@ HOSTCFLAGS := -g -Wall -O2 GDB := $(GCCPREFIX)gdb -CC ?= $(GCCPREFIX)gcc +CC := $(GCCPREFIX)gcc CFLAGS := -fno-builtin -Wall -ggdb -m32 -gstabs -nostdinc $(DEFS) CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector) CTYPE := c S diff --git a/labcodes_answer/lab8_result/Makefile b/labcodes_answer/lab8_result/Makefile index 1e3e279..d7fd01c 100644 --- a/labcodes_answer/lab8_result/Makefile +++ b/labcodes_answer/lab8_result/Makefile @@ -47,7 +47,7 @@ HOSTCFLAGS := -g -Wall -O2 -D_FILE_OFFSET_BITS=64 GDB := $(GCCPREFIX)gdb -CC ?= $(GCCPREFIX)gcc +CC := $(GCCPREFIX)gcc CFLAGS := -fno-builtin -Wall -ggdb -m32 -gstabs -nostdinc $(DEFS) CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector) CTYPE := c S