Lines 1-6
Link Here
|
|
|
1 |
# from Linux Kernel Source |
2 |
# cc-option |
3 |
# Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586) |
4 |
|
5 |
cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \ |
6 |
> /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) |
7 |
|
1 |
ifeq ($(subdir),csu) |
8 |
ifeq ($(subdir),csu) |
2 |
sysdep_routines += errno-loc ssp |
9 |
sysdep_routines += errno-loc ssp |
3 |
CFLAGS-ssp.c += -fno-stack-protector |
10 |
CFLAGS-ssp.c += $(call cc-option, -fno-stack-protector) |
4 |
endif |
11 |
endif |
5 |
|
12 |
|
6 |
ifeq ($(subdir),assert) |
13 |
ifeq ($(subdir),assert) |