diff options
| author | Paul Eggert | 2017-03-20 08:57:20 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-03-20 08:57:50 -0700 |
| commit | 3c4ec7e1d2fd0197c5fcadac7dd35414b7be72cb (patch) | |
| tree | fefb1c9462ed3d61a4faeb1707c0188e17cbce2b | |
| parent | 34d69ed7355572b905bf16ab84024b7056cffe85 (diff) | |
| download | emacs-3c4ec7e1d2fd0197c5fcadac7dd35414b7be72cb.tar.gz emacs-3c4ec7e1d2fd0197c5fcadac7dd35414b7be72cb.zip | |
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.
| -rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b922dc473d6..48fcb3f33aa 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -1742,6 +1742,9 @@ if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then | |||
| 1742 | AC_MSG_RESULT([$ac_enable_autodepend]) | 1742 | AC_MSG_RESULT([$ac_enable_autodepend]) |
| 1743 | if test $ac_enable_autodepend = yes; then | 1743 | if test $ac_enable_autodepend = yes; then |
| 1744 | AUTO_DEPEND=yes | 1744 | AUTO_DEPEND=yes |
| 1745 | for depdir in */deps; do | ||
| 1746 | test ! -d "$depdir" || rm -fr "$depdir"/../*.o "$depdir" || exit | ||
| 1747 | done | ||
| 1745 | fi | 1748 | fi |
| 1746 | fi | 1749 | fi |
| 1747 | AC_SUBST(AUTO_DEPEND) | 1750 | AC_SUBST(AUTO_DEPEND) |