Bug 781529 - Use -MMD flag for dependency generation instead of -MD. r=ted
authorMike Hommey <mh+mozilla@glandium.org>
Sat, 18 Aug 2012 11:17:48 +0200
changeset 104694 a1ba35958b98f6b281361ec9ec7fdbb76afc63f0
parent 104693 e5080772cee828b7e4dc7abc8f64ebf504f7f9c8
child 104695 f390e36c7fe22cf2dafb2b36000864782949c24e
push id45
push usershu@rfrn.org
push dateThu, 23 Aug 2012 00:57:43 +0000
reviewersted
bugs781529
milestone17.0a1
Bug 781529 - Use -MMD flag for dependency generation instead of -MD. r=ted
configure.in
js/src/configure.in
--- a/configure.in
+++ b/configure.in
@@ -7676,17 +7676,17 @@ MOZ_ARG_DISABLE_BOOL(md,
      _cpp_md_flag=1
    fi
   dnl Default is to use -xM if using Sun Studio on Solaris
    if test "$SOLARIS_SUNPRO_CC"; then
      _cpp_md_flag=1
    fi])
 if test "$_cpp_md_flag"; then
   COMPILER_DEPEND=1
-  _DEPEND_CFLAGS='$(filter-out %/.pp,-MD -MF $(MDDEPDIR)/$(@F).pp)'
+  _DEPEND_CFLAGS='$(filter-out %/.pp,-MMD -MF $(MDDEPDIR)/$(@F).pp)'
   dnl Sun Studio on Solaris use -xM instead of -MD, see config/rules.mk
   if test "$SOLARIS_SUNPRO_CC"; then
     _DEPEND_CFLAGS=
   fi
 else
   COMPILER_DEPEND=
   dnl Don't override this for MSVC
   if test -z "$_WIN32_MSVC"; then
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -4085,17 +4085,17 @@ MOZ_ARG_DISABLE_BOOL(md,
      _cpp_md_flag=1
    fi
   dnl Default is to use -xM if using Sun Studio on Solaris
    if test "$SOLARIS_SUNPRO_CC"; then
      _cpp_md_flag=1
    fi])
 if test "$_cpp_md_flag"; then
   COMPILER_DEPEND=1
-  _DEPEND_CFLAGS='$(filter-out %/.pp,-MD -MF $(MDDEPDIR)/$(@F).pp)'
+  _DEPEND_CFLAGS='$(filter-out %/.pp,-MMD -MF $(MDDEPDIR)/$(@F).pp)'
   dnl Sun Studio on Solaris use -xM instead of -MD, see config/rules.mk
   if test "$SOLARIS_SUNPRO_CC"; then
     _DEPEND_CFLAGS=
   fi
 else
   COMPILER_DEPEND=
   dnl Don't override this for MSVC
   if test -z "$_WIN32_MSVC"; then