]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - gdb/patches/gdb-ccache-workaround.patch
wget: LDFLAGS were accidentially overwritten
[people/arne_f/ipfire-3.x.git] / gdb / patches / gdb-ccache-workaround.patch
1 --- a/gdb/testsuite/gdb.base/macscp.exp
2 +++ b/gdb/testsuite/gdb.base/macscp.exp
3 @@ -33,6 +33,14 @@ if [test_compiler_info gcc*] {
4 lappend options additional_flags=-g3
5 }
6
7 +# Workaround ccache making lineno non-zero for command-line definitions.
8 +if {[find_gcc] == "gcc" && [file executable "/usr/bin/gcc"]} {
9 + set result [catch "exec which gcc" output]
10 + if {$result == 0 && [string first "/ccache/" $output] >= -1} {
11 + lappend options "compiler=/usr/bin/gcc"
12 + }
13 +}
14 +
15 # Generate the intermediate object file. This is required by Darwin to
16 # have access to the .debug_macinfo section.
17 if {[gdb_compile "${srcdir}/${subdir}/macscp1.c" "${objfile}" \