If --disable-md is given, do not use gcc's -include directive as it screws up dependencies.

Bug 140171 r=bryner
This commit is contained in:
seawood%netscape.com 2002-05-14 05:18:16 +00:00
Родитель 63704917fd
Коммит f4cb595231
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -3965,7 +3965,7 @@ dnl ========================================================
_cpp_md_flag=
MOZ_ARG_DISABLE_BOOL(md,
[ --disable-md Do not use compiler-based dependencies ],
[],
[_cpp_md_flag=],
[_cpp_md_flag=1],
[dnl Default is to turn on -MD if using GNU-compatible compilers
if test "$GNU_CC" -a "$GNU_CXX"; then
@ -3974,6 +3974,11 @@ MOZ_ARG_DISABLE_BOOL(md,
if test "$_cpp_md_flag"; then
COMPILER_DEPEND=1
_DEPEND_CFLAGS='$(filter-out %/.pp,-Wp,-MD,$(MDDEPDIR)/$(*F).pp)'
else
COMPILER_DEPEND=
_USE_CPP_INCLUDE_FLAG=
_DEFINES_CFLAGS='$(ACDEFINES) -DMOZILLA_CLIENT'
_DEFINES_CXXFLAGS='$(ACDEFINES) -DMOZILLA_CLIENT'
fi
fi # MOZ_AUTO_DEPS
MDDEPDIR='.deps'