Don't install licenses files.
1 Adjusted for gcc-3.3-20040119
3 See http://gcc.gnu.org/PR12010
5 Without this patch, one gets both compile and link time errors in
6 'make check' when configured for cross-compiling.
8 In particular, 'make check' on a cross-compiler fails with
10 /testsuite_flags: /testsuite_flags: No such file or directory
12 "exec sh ${odir_v3}/testsuite_flags --build-includes"
13 (procedure "g++_include_flags" line 21)
15 "g++_include_flags [get_multilibs] "
16 (procedure "g++_init" line 63)
18 "${tool}_init $test_file_name"
19 (procedure "runtest" line 19)
21 make[1]: [check-g++] Error 1 (ignored)
23 --- gcc-3.3-20040119/gcc/testsuite/lib/g++.exp.orig 2004-01-25 17:56:24.000000000 -0800
24 +++ gcc-3.3-20040119/gcc/testsuite/lib/g++.exp 2004-01-25 18:29:44.000000000 -0800
25 @@ -72,6 +72,8 @@ proc g++_version { } {
27 proc g++_include_flags { paths } {
30 + global target_triplet
31 global HAVE_LIBSTDCXX_V3
32 global TESTING_IN_BUILD_TREE
34 @@ -90,6 +92,20 @@ proc g++_include_flags { paths } {
36 if { ${HAVE_LIBSTDCXX_V3} } {
37 set odir_v3 [lookfor_file ${gccpath} libstdc++-v3]
38 + if { $odir_v3 == "" } {
39 + verbose "g++_include_flags: couldn't find libstdc++-v3 on first try, now looking in build directory $objdir"
40 + # first assume no multilibs
41 + set odir_v3 [lookfor_file ${objdir} "$target_triplet/libstdc++-v3"]
43 + if { $odir_v3 == "" } {
44 + verbose "g++_include_flags: couldn't find libstdc++-v3 on second try, trying multilib"
45 + # assume multilib only one level deep
46 + set multisub [file tail $gccpath]
47 + set odir_v3 [lookfor_file ${objdir} "$target_triplet/$multisub/libstdc++-v3"]
49 + if { $odir_v3 == "" } {
50 + error "Can't find libstdc++-v3"
52 append flags [exec sh ${odir_v3}/testsuite_flags --build-includes]
54 set odir_v2 [lookfor_file ${gccpath} libstdc++]
56 --- gcc-3.3-20040119/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp.old Sun Jul 13 10:42:01 2003
57 +++ gcc-3.3-20040119/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp Sun Jul 13 11:39:54 2003
59 global ld_library_path
60 global original_ld_library_path
62 + global target_triplet
64 set blddir [lookfor_file [get_multilibs] libstdc++-v3]
65 + if { $blddir == "" } {
66 + set multilibs [get_multilibs]
67 + # FIXME: assume multilib only one level deep
68 + set multisub [file tail $multilibs]
69 + verbose "libstdc++-v3-init: couldn't find libstdc++-v3 in $multilibs, trying $objdir"
70 + set blddir [lookfor_file ${objdir} "$target_triplet/$multisub/libstdc++-v3"]
72 + if { $blddir == "" } {
73 + verbose "libstdc++-v3-init: couldn't find libstdc++-v3, trying $objdir without multilibs"
74 + set blddir [lookfor_file ${objdir} "$target_triplet/libstdc++-v3"]
76 + if { $blddir == "" } {
77 + error "Can't find libstdc++-v3"
80 # By default, we assume we want to run program images.
81 global dg-do-what-default