]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
automake: Handle LTLIBOBJS more specifically
authorMathieu Lirzin <mthl@gnu.org>
Sun, 27 Aug 2017 13:27:00 +0000 (15:27 +0200)
committerMathieu Lirzin <mthl@gnu.org>
Sun, 27 Aug 2017 14:04:33 +0000 (16:04 +0200)
* bin/automake.in (handle_LIBOBJS_or_ALLOCA): Remove complex regexp
substitution when handling LTLIBOBJS.

bin/automake.in

index d126836a04c0e65655479ae8be99f30044d8940d..cdea38856b8ae6b92b9ac1010b286199882ee459 100644 (file)
@@ -2306,9 +2306,8 @@ sub handle_LIBOBJS_or_ALLOCA
            if $relative_dir ne '.';
          define_variable ('LIBOBJDIR', "$dir", INTERNAL);
          $clean_files{"\$($var)"} = MOSTLY_CLEAN;
-         # If LTLIBOBJS is used, we must also clear LIBOBJS (which might
-         # be created by libtool as a side-effect of creating LTLIBOBJS).
-         $clean_files{"\$($var)"} = MOSTLY_CLEAN if $var =~ s/^LT//;
+         # libtool might create LIBOBJS as a side-effect of using LTLIBOBJS.
+         $clean_files{"\$(LIBOBJS)"} = MOSTLY_CLEAN if $var eq "LTLIBOBJS";
        }
       else
        {