Reported by qolfixes on #gentoo-toolchain. Due to permission error in temp/
glibc ebuild silently filtered away all flags from CFLAGS and failed with an
obscure error. The change turn flag filtering error into early fatal error.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
case "${lang}" in
# compiler/assembler only
c)
- in_ext='.c'
+ in_ext='c'
in_src='int main(void) { return 0; }'
cmdline_extra+=(-xc -c)
;;
c++)
- in_ext='.cc'
+ in_ext='cc'
in_src='int main(void) { return 0; }'
cmdline_extra+=(-xc++ -c)
;;
f77)
- in_ext='.f'
+ in_ext='f'
# fixed source form
in_src=' end'
cmdline_extra+=(-xf77 -c)
;;
f95)
- in_ext='.f90'
+ in_ext='f90'
in_src='end'
cmdline_extra+=(-xf95 -c)
;;
# C compiler/assembler/linker
c+ld)
- in_ext='.c'
+ in_ext='c'
in_src='int main(void) { return 0; }'
cmdline_extra+=(-xc)
;;
local test_in=${T}/test-flag.${in_ext}
local test_out=${T}/test-flag.exe
- printf "%s\n" "${in_src}" > "${test_in}" || return 1
+ printf "%s\n" "${in_src}" > "${test_in}" || die "Failed to create '${test_in}'"
local cmdline=(
"${comp[@]}"