12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- From c5ac3ad154c06cd4ae7332051735f0d3ceb82d6b Mon Sep 17 00:00:00 2001
- From: Szabolcs Nagy <nsz@port70.net>
- Date: Sat, 7 May 2016 22:39:20 +0000
- Subject: [PATCH 03/12] libatomic test fix
- ---
- libatomic/testsuite/Makefile.am | 6 ++++++
- libatomic/testsuite/Makefile.in | 5 +++++
- libatomic/testsuite/lib/libatomic.exp | 3 +++
- 3 files changed, 14 insertions(+)
- diff --git a/libatomic/testsuite/Makefile.am b/libatomic/testsuite/Makefile.am
- index a9a0144185a..a19101aac54 100644
- --- a/libatomic/testsuite/Makefile.am
- +++ b/libatomic/testsuite/Makefile.am
- @@ -11,3 +11,9 @@ EXPECT = $(shell if test -f $(top_builddir)/../expect/expect; then \
- _RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \
- echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi)
- RUNTEST = "$(_RUNTEST) $(AM_RUNTESTFLAGS)"
- +
- +EXTRA_DEJAGNU_SITE_CONFIG = extra.exp
- +
- +extra.exp:
- + echo 'set BUILD_CC "$(CC)"' > $@.tmp
- + mv $@.tmp $@
- diff --git a/libatomic/testsuite/Makefile.in b/libatomic/testsuite/Makefile.in
- index 0a7ac4b4dc7..704db219fa3 100644
- --- a/libatomic/testsuite/Makefile.in
- +++ b/libatomic/testsuite/Makefile.in
- @@ -226,6 +226,7 @@ _RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \
- echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi)
-
- RUNTEST = "$(_RUNTEST) $(AM_RUNTESTFLAGS)"
- +EXTRA_DEJAGNU_SITE_CONFIG = extra.exp
- all: all-am
-
- .SUFFIXES:
- @@ -432,6 +433,10 @@ uninstall-am:
- uninstall uninstall-am
-
-
- +extra.exp:
- + echo 'set BUILD_CC "$(CC)"' > $@.tmp
- + mv $@.tmp $@
- +
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:
- diff --git a/libatomic/testsuite/lib/libatomic.exp b/libatomic/testsuite/lib/libatomic.exp
- index 0a53f9e11f1..51b35919f2d 100644
- --- a/libatomic/testsuite/lib/libatomic.exp
- +++ b/libatomic/testsuite/lib/libatomic.exp
- @@ -75,6 +75,7 @@ proc libatomic_init { args } {
- global ALWAYS_CFLAGS
- global CFLAGS
- global TOOL_EXECUTABLE TOOL_OPTIONS
- + global BUILD_CC
- global GCC_UNDER_TEST
- global TESTING_IN_BUILD_TREE
- global target_triplet
- @@ -90,6 +91,8 @@ proc libatomic_init { args } {
- if ![info exists GCC_UNDER_TEST] then {
- if [info exists TOOL_EXECUTABLE] {
- set GCC_UNDER_TEST $TOOL_EXECUTABLE
- + } elseif [info exists BUILD_CC] {
- + set GCC_UNDER_TEST $BUILD_CC
- } else {
- set GCC_UNDER_TEST "[find_gcc]"
- }
- --
- 2.17.1
|