summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
-rwxr-xr-xconfigure3
2 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1d951f40b9..1ede58f37d 100644
--- a/Makefile
+++ b/Makefile
@@ -743,16 +743,16 @@ all: $(ALL_PRG-yes) locales
$(CC) $(CFLAGS) -Wno-unused -c -o $@ -x c $<
%.o: %.S
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(DEPFLAGS) $(CFLAGS) -c -o $@ $<
%.o: %.c
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(DEPFLAGS) $(CFLAGS) -c -o $@ $<
%.o: %.cpp
- $(CC) $(CXXFLAGS) -c -o $@ $<
+ $(CC) $(DEPFLAGS) $(CXXFLAGS) -c -o $@ $<
%.o: %.m
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(DEPFLAGS) $(CFLAGS) -c -o $@ $<
%-rc.o: %.rc
$(WINDRES) -I. $< $@
diff --git a/configure b/configure
index 02de3c516f..2398058dc7 100755
--- a/configure
+++ b/configure
@@ -2438,7 +2438,7 @@ else
fi
cflag_check -mno-omit-leaf-frame-pointer && cflags_no_omit_leaf_frame_pointer="-mno-omit-leaf-frame-pointer"
-cflag_check -MD -MP && CFLAGS="-MD -MP $CFLAGS"
+cflag_check -MD -MP && DEPFLAGS="-MD -MP $CFLAGS"
if test -n "$LDFLAGS" ; then
@@ -7733,6 +7733,7 @@ WINDRES = $_windres
CFLAGS = $CFLAGS $extra_cflags
CXXFLAGS = $CXXFLAGS $extra_cflags $extra_cxxflags
+DEPFLAGS = $DEPFLAGS
CFLAGS_DHAHELPER = $cflags_dhahelper
CFLAGS_FAAD_FIXED = $cflags_faad_fixed