emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 3c4ec7e: Fix problem with out-of-date dependencies


From: Paul Eggert
Subject: [Emacs-diffs] master 3c4ec7e: Fix problem with out-of-date dependencies
Date: Mon, 20 Mar 2017 11:57:56 -0400 (EDT)

branch: master
commit 3c4ec7e1d2fd0197c5fcadac7dd35414b7be72cb
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Fix problem with out-of-date dependencies
    
    Problem reported by Robert Marshall in:
    http://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00501.html
    Although this problem has been with us for a while, the recent
    change from Automake to GNU Make exposed it again.
    * configure.ac (AUTO_DEPEND): When autodepending, clean out any
    leftover dependency and object files, since the previous sources'
    dependencies may disagree with the current ones.  Reconfiguring
    typically needs to force a rebuild anyway.
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index b922dc4..48fcb3f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1742,6 +1742,9 @@ if test "$GCC" = yes && test "$ac_enable_autodepend" = 
yes; then
    AC_MSG_RESULT([$ac_enable_autodepend])
    if test $ac_enable_autodepend = yes; then
       AUTO_DEPEND=yes
+      for depdir in */deps; do
+       test ! -d "$depdir" || rm -fr "$depdir"/../*.o "$depdir" || exit
+      done
    fi
 fi
 AC_SUBST(AUTO_DEPEND)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]