summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/automake.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/automake.in b/bin/automake.in
index 3433d3de7..4294736aa 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -2358,8 +2358,9 @@ sub handle_LIBOBJS_or_ALLOCA
if $relative_dir ne '.';
define_variable ('LIBOBJDIR', "$dir", INTERNAL);
$clean_files{"\$($var)"} = MOSTLY_CLEAN;
- # libtool might create LIBOBJS as a side-effect of using LTLIBOBJS.
- $clean_files{"\$(LIBOBJS)"} = MOSTLY_CLEAN if $var eq "LTLIBOBJS";
+ # libtool might create LIBOBJS or ALLOCA as a side-effect of using
+ # LTLIBOBJS or LTALLOCA.
+ $clean_files{"\$($var)"} = MOSTLY_CLEAN if $var =~ s/^LT//;
}
else
{