Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 127659 | Differences between
and this patch

Collapse All | Expand All

(-)flag-o-matic.eclass (-2 / +9 lines)
Lines 345-352 Link Here
345
		return 1
345
		return 1
346
346
347
	local PROG=$(tc-get${comp})
347
	local PROG=$(tc-get${comp})
348
	${PROG} ${flags} -S -o /dev/null -xc /dev/null \
348
	local out=$(${PROG} ${flags} -S -o /dev/null -xc /dev/null 2>&1) \
349
		> /dev/null 2>&1
349
		|| return 1 # PROG returned error status
350
351
	local f
352
	for f in $flags; do
353
		[[ $out == *"unrecognized option \`$f'"* ]] && return 1
354
	done
355
356
	return 0
350
}
357
}
351
358
352
# Returns true if C compiler support given flag
359
# Returns true if C compiler support given flag

Return to bug 127659