]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Revert "automake: Handle LTLIBOBJS more specifically"
authorMathieu Lirzin <mthl@gnu.org>
Thu, 14 Sep 2017 19:01:19 +0000 (21:01 +0200)
committerMathieu Lirzin <mthl@gnu.org>
Thu, 14 Sep 2017 19:08:51 +0000 (21:08 +0200)
This reverts commit 5521219348c55af354878583b99c5f9d66d6d38a.

bin/automake.in

index 3433d3de7c8316b9ea12c3183a192cc36e9197b3..4294736aafc7dd4685c22319bf3ca2b603b2e98b 100644 (file)
@@ -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
        {