From f31e9dee0a45d392fe08d3441dd64200a5505a05 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 16 Mar 2019 18:38:49 +0100 Subject: [PATCH] export DEJAGNU for make check to suppress global config file WARNING. On some systems we need to set and export DEJAGNU to suppress WARNING: Couldn't find the global config file. 2019-03-16 Mark Wielaard * Makefile (DEJAGNU): Optionally set variable. (check): export DEJAGNU. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 1aa208f..2ce7b59 100644 --- a/Makefile +++ b/Makefile @@ -26,9 +26,14 @@ hello: dw2-restrict: $(CC) $(TEST_SRC)/dw2-restrict.S -o $@ || touch $@ +# On some systems we need to set and export DEJAGNU to suppress +# WARNING: Couldn't find the global config file. +DEJAGNU ?= /dev/null + check: dwz $(TEST_EXECS) mkdir -p testsuite-bin cd testsuite-bin; ln -sf $(PWD)/dwz . + export DEJAGNU=$(DEJAGNU); \ export PATH=$(PWD)/testsuite-bin:$$PATH; export LC_ALL=C; \ runtest --tool=dwz -srcdir testsuite $(RUNTESTFLAGS) rm -Rf testsuite-bin $(TEST_EXECS) -- 2.20.1