]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix a spurious failure with FreeBSD make
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 18 May 2013 22:07:33 +0000 (00:07 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 18 May 2013 22:15:41 +0000 (00:15 +0200)
Failures due to known VPATH support issues in that make implementation
(the same issues that have been causing the long-standing bug#7884).

* t/ltlibsrc.sh: Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/ltlibsrc.sh

index 04a029fe71962c2cbd82b92a7ecddff84acc24db..c4979684fefbdb4a3057077295826ffde621be90 100644 (file)
@@ -39,6 +39,13 @@ zoo_d_old2_la.c: $(srcdir)/old_la.c
 AUTOMAKE_OPTIONS = -Wno-unsupported
 END
 
+if useless_vpath_rebuild; then
+  unindent >> Makefile.am <<'END'
+    # Work around a known FreeBSD make issues in VPATH builds.
+    DISTCLEANFILES = zoo_d_old2_la.c
+END
+fi
+
 cat > foo.c << 'END'
 int foo (void)
 {