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

(-)a/sys-boot/gnu-efi/gnu-efi-3.0.18-r4.ebuild (-2 / +2 lines)
Lines 103-111 src_compile() { Link Here
103
	# bug #933080, #938012
103
	# bug #933080, #938012
104
	local CPPINCLUDEDIR
104
	local CPPINCLUDEDIR
105
	if tc-is-gcc; then
105
	if tc-is-gcc; then
106
		CPPINCLUDEDIR=$(LANG=C ${CC} -print-search-dirs 2> /dev/null | grep ^install: | cut -f2 -d' ')/include
106
		CPPINCLUDEDIR=$(LC_ALL=C ${CC} -print-search-dirs 2> /dev/null | grep ^install: | cut -f2 -d' ')/include
107
	elif tc-is-clang; then
107
	elif tc-is-clang; then
108
		CPPINCLUDEDIR=$(LANG=C ${CC} -print-resource-dir 2> /dev/null)/include
108
		CPPINCLUDEDIR=$(LC_ALL=C ${CC} -print-resource-dir 2> /dev/null)/include
109
	fi
109
	fi
110
	append-cflags "-nostdinc -isystem ${CPPINCLUDEDIR} -isystem ${ESYSROOT}/usr/include"
110
	append-cflags "-nostdinc -isystem ${CPPINCLUDEDIR} -isystem ${ESYSROOT}/usr/include"
111
111

Return to bug 938580