Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 282201
Collapse All | Expand All

(-)scripts/Kbuild.include.zorry (-2 / +2 lines)
Lines 105-116 Link Here
105
# Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)
105
# Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)
106
106
107
cc-option = $(call try-run,\
107
cc-option = $(call try-run,\
108
	$(CC) $(KBUILD_CFLAGS) $(1) -c -xc /dev/null -o "$$TMP",$(1),$(2))
108
	$(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(1) -c -xc /dev/null -o "$$TMP",$(1),$(2))
109
109
110
# cc-option-yn
110
# cc-option-yn
111
# Usage: flag := $(call cc-option-yn,-march=winchip-c6)
111
# Usage: flag := $(call cc-option-yn,-march=winchip-c6)
112
cc-option-yn = $(call try-run,\
112
cc-option-yn = $(call try-run,\
113
	$(CC) $(KBUILD_CFLAGS) $(1) -c -xc /dev/null -o "$$TMP",y,n)
113
	$(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(1) -c -xc /dev/null -o "$$TMP",y,n)
114
114
115
# cc-option-align
115
# cc-option-align
116
# Prefix align with either -falign or -malign
116
# Prefix align with either -falign or -malign

Return to bug 282201