diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-12-18 12:20:23 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-12-18 14:47:39 +0100 |
commit | fb214402c043a70581f19d4856a81362a5a1a0d6 (patch) | |
tree | 0f81a2fe7d2202f616f46867545089de22e41483 | |
parent | f4eceb86c31f0d9b1cb76aa88d57676ebb48b342 (diff) | |
download | automake-fb214402c043a70581f19d4856a81362a5a1a0d6.tar.gz automake-fb214402c043a70581f19d4856a81362a5a1a0d6.tar.bz2 automake-fb214402c043a70581f19d4856a81362a5a1a0d6.zip |
tests: avoid a spurious failure on NetBSD
* t/tags-pr12372.sh (configure.ac): AC_SUBST the LINK variable to a
dummy invocation, to avoid possible errors from make or the linker;
errors we do not care about in the least in this test.
(Makefile.am, sub/Makefile.am): Remove LINK definitions; simply
inherit that in configure.ac.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
-rwxr-xr-x | t/tags-pr12372.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/tags-pr12372.sh b/t/tags-pr12372.sh index e232d5fe4..2e20322db 100755 --- a/t/tags-pr12372.sh +++ b/t/tags-pr12372.sh @@ -23,6 +23,9 @@ required='cc etags' cat >> configure.ac <<'END' AC_PROG_CC AC_CONFIG_FILES([sub/Makefile]) +# Fake linking. Help avoid possible spurious errors from make +# or from the linker; errors that are irrelevant to this test. +AC_SUBST([LINK], ['echo $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@']) AC_OUTPUT END @@ -33,7 +36,6 @@ all-local: tags $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $*.c rm -f $*.c -LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@ noinst_PROGRAMS = foo foo_SOURCES = foo-main.pc barbar.c SUBDIRS = sub @@ -47,7 +49,6 @@ all-local: tags $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $*.c rm -f $*.c -LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@ noinst_PROGRAMS = zap zap_SOURCES = zardoz.pc END |