summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-01 23:18:16 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:20 +0200
commit853dc929e4778d6aefd41678d136dc366ea9449a (patch)
treec80780783ee9b9ed8f3848e32fc5a2f5effaca0b /configure
parent948fa5d0706ce96368f46a0311bad426765af53a (diff)
downloadmpv-853dc929e4778d6aefd41678d136dc366ea9449a.tar.bz2
mpv-853dc929e4778d6aefd41678d136dc366ea9449a.tar.xz
configure: Separate dependency flags from general CFLAGS
Before, there was an unfortunate interaction with 'make checkheaders': Compiling a .h file would generate a .d dependency information file for that .h file as a sideeffect of compilation. Unfortunately this would clobber the .d files of the .c files with the same basename, resulting in broken dependency information when running plain make. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31614 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
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