Fix for -MD flags. Filter-out the rule if the rule if it is bogus. A better way around the problem would be to take CFLAGS off the link line, but I am not sure if we can do this.

git-svn-id: svn://10.0.0.236/trunk@23715 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
slamm%netscape.com
1999-03-11 19:46:00 +00:00
parent 36dae6fed3
commit d2df84f62d

View File

@@ -774,7 +774,7 @@ MOZ_ARG_ENABLE_BOOL_OR_STRING(debug,
MOZ_ARG_ENABLE_BOOL(md,
[ --enable-md Use compiler-based dependencies ],
[ COMPILER_DEPEND=1
_DEPEND_CFLAGS='-Wp,-MD,$(*D)/.deps/$(*F).pp' ]
_DEPEND_CFLAGS='$(filter-out %/.pp,-Wp,-MD,$(*D)/.deps/$(*F).pp)' ]
)
dnl Make pedantic a flag for now since the builds currently choke on it.