diff options
author | Mathieu Lirzin <mthl@gnu.org> | 2017-08-27 15:27:00 +0200 |
---|---|---|
committer | Mathieu Lirzin <mthl@gnu.org> | 2017-08-27 16:04:33 +0200 |
commit | 5521219348c55af354878583b99c5f9d66d6d38a (patch) | |
tree | d92d44c4e1589681d6fa6f559651d484d2a5eda0 /bin/automake.in | |
parent | 236cb06666a44f23157aa95adc26450fdec92126 (diff) | |
download | automake-5521219348c55af354878583b99c5f9d66d6d38a.tar.gz |
automake: Handle LTLIBOBJS more specifically
* bin/automake.in (handle_LIBOBJS_or_ALLOCA): Remove complex regexp
substitution when handling LTLIBOBJS.
Diffstat (limited to 'bin/automake.in')
-rw-r--r-- | bin/automake.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/automake.in b/bin/automake.in index d126836a0..cdea38856 100644 --- a/bin/automake.in +++ b/bin/automake.in @@ -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 { |