archive: dragora-tools/dragora-keymap: minor changes
[dragora.git] / patches / gcc / 0006-libvtv-test-fix.patch
blobc41adc00b40ca780190bff5612c3d744ddbcefcf
1 From 7f2a2adba4f14eb144671b632fefa49af179e5d5 Mon Sep 17 00:00:00 2001
2 From: Szabolcs Nagy <nsz@port70.net>
3 Date: Sun, 6 Nov 2016 03:16:23 +0000
4 Subject: [PATCH 06/12] libvtv test fix
6 ---
7 libvtv/testsuite/Makefile.am | 6 ++++++
8 libvtv/testsuite/Makefile.in | 5 +++++
9 libvtv/testsuite/lib/libvtv.exp | 3 +++
10 3 files changed, 14 insertions(+)
12 diff --git a/libvtv/testsuite/Makefile.am b/libvtv/testsuite/Makefile.am
13 index a9a0144185a..a19101aac54 100644
14 --- a/libvtv/testsuite/Makefile.am
15 +++ b/libvtv/testsuite/Makefile.am
16 @@ -11,3 +11,9 @@ EXPECT = $(shell if test -f $(top_builddir)/../expect/expect; then \
17 _RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \
18 echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi)
19 RUNTEST = "$(_RUNTEST) $(AM_RUNTESTFLAGS)"
21 +EXTRA_DEJAGNU_SITE_CONFIG = extra.exp
23 +extra.exp:
24 + echo 'set BUILD_CC "$(CC)"' > $@.tmp
25 + mv $@.tmp $@
26 diff --git a/libvtv/testsuite/Makefile.in b/libvtv/testsuite/Makefile.in
27 index f6314708e9f..cd281ac1ff7 100644
28 --- a/libvtv/testsuite/Makefile.in
29 +++ b/libvtv/testsuite/Makefile.in
30 @@ -229,6 +229,7 @@ _RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \
31 echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi)
33 RUNTEST = "$(_RUNTEST) $(AM_RUNTESTFLAGS)"
34 +EXTRA_DEJAGNU_SITE_CONFIG = extra.exp
35 all: all-am
37 .SUFFIXES:
38 @@ -435,6 +436,10 @@ uninstall-am:
39 uninstall uninstall-am
42 +extra.exp:
43 + echo 'set BUILD_CC "$(CC)"' > $@.tmp
44 + mv $@.tmp $@
46 # Tell versions [3.59,3.63) of GNU make to not export all variables.
47 # Otherwise a system limit (for SysV at least) may be exceeded.
48 .NOEXPORT:
49 diff --git a/libvtv/testsuite/lib/libvtv.exp b/libvtv/testsuite/lib/libvtv.exp
50 index edf5fddbad2..a596091573b 100644
51 --- a/libvtv/testsuite/lib/libvtv.exp
52 +++ b/libvtv/testsuite/lib/libvtv.exp
53 @@ -74,6 +74,7 @@ proc libvtv_init { args } {
54 global ALWAYS_CFLAGS
55 global CFLAGS
56 global TOOL_EXECUTABLE TOOL_OPTIONS
57 + global BUILD_CC
58 global GCC_UNDER_TEST
59 global TESTING_IN_BUILD_TREE
60 global target_triplet
61 @@ -89,6 +90,8 @@ proc libvtv_init { args } {
62 if ![info exists GCC_UNDER_TEST] then {
63 if [info exists TOOL_EXECUTABLE] {
64 set GCC_UNDER_TEST $TOOL_EXECUTABLE
65 + } elseif [info exists BUILD_CC] {
66 + set GCC_UNDER_TEST $BUILD_CC
67 } else {
68 set GCC_UNDER_TEST "[find_gcc]"
70 --
71 2.17.1