Browse Source

fix CC assignment in Makefiles of answers

main
crdong 9 years ago
parent
commit
710d3eae4c
6 changed files with 6 additions and 6 deletions
  1. +1
    -1
      labcodes_answer/lab3_result/Makefile
  2. +1
    -1
      labcodes_answer/lab4_result/Makefile
  3. +1
    -1
      labcodes_answer/lab5_result/Makefile
  4. +1
    -1
      labcodes_answer/lab6_result/Makefile
  5. +1
    -1
      labcodes_answer/lab7_result/Makefile
  6. +1
    -1
      labcodes_answer/lab8_result/Makefile

+ 1
- 1
labcodes_answer/lab3_result/Makefile View File

@ -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

+ 1
- 1
labcodes_answer/lab4_result/Makefile View File

@ -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

+ 1
- 1
labcodes_answer/lab5_result/Makefile View File

@ -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

+ 1
- 1
labcodes_answer/lab6_result/Makefile View File

@ -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

+ 1
- 1
labcodes_answer/lab7_result/Makefile View File

@ -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

+ 1
- 1
labcodes_answer/lab8_result/Makefile View File

@ -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

Loading…
Cancel
Save