summaryrefslogtreecommitdiff
path: root/t/ltlibsrc.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/ltlibsrc.sh')
-rw-r--r--t/ltlibsrc.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/ltlibsrc.sh b/t/ltlibsrc.sh
index 1ca9b71a9..225330944 100644
--- a/t/ltlibsrc.sh
+++ b/t/ltlibsrc.sh
@@ -33,12 +33,19 @@ AM_LDFLAGS = -module
pkglib_LTLIBRARIES = zoo.d/bar.la old.la
noinst_LTLIBRARIES = foo.la zoo.d/old2.la
-$(srcdir)/zoo_d_old2_la.c: $(srcdir)/old_la.c
+zoo_d_old2_la.c: $(srcdir)/old_la.c
cp $(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)
{