comparison configure @ 31548:0c9300413b28

Separate automatic dependency generation 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.
author diego
date Thu, 01 Jul 2010 23:18:16 +0000
parents 05537cb15be6
children 0b34520a1c84
comparison
equal deleted inserted replaced
31547:05537cb15be6 31548:0c9300413b28
2555 else 2555 else
2556 CFLAGS="-D_ISOC99_SOURCE -D_BSD_SOURCE $CFLAGS" 2556 CFLAGS="-D_ISOC99_SOURCE -D_BSD_SOURCE $CFLAGS"
2557 fi 2557 fi
2558 2558
2559 cflag_check -mno-omit-leaf-frame-pointer && cflags_no_omit_leaf_frame_pointer="-mno-omit-leaf-frame-pointer" 2559 cflag_check -mno-omit-leaf-frame-pointer && cflags_no_omit_leaf_frame_pointer="-mno-omit-leaf-frame-pointer"
2560 cflag_check -MD -MP && CFLAGS="-MD -MP $CFLAGS" 2560 cflag_check -MD -MP && DEPFLAGS="-MD -MP $CFLAGS"
2561 2561
2562 2562
2563 if test -n "$LDFLAGS" ; then 2563 if test -n "$LDFLAGS" ; then
2564 extra_ldflags="$extra_ldflags $LDFLAGS" 2564 extra_ldflags="$extra_ldflags $LDFLAGS"
2565 warn_cflags=yes 2565 warn_cflags=yes
8461 WINDRES = $_windres 8461 WINDRES = $_windres
8462 8462
8463 CFLAGS = $CFLAGS $extra_cflags 8463 CFLAGS = $CFLAGS $extra_cflags
8464 ASFLAGS = \$(CFLAGS) 8464 ASFLAGS = \$(CFLAGS)
8465 CXXFLAGS = $CXXFLAGS $extra_cflags $extra_cxxflags 8465 CXXFLAGS = $CXXFLAGS $extra_cflags $extra_cxxflags
8466 DEPFLAGS = $DEPFLAGS
8466 8467
8467 CFLAGS_DHAHELPER = $cflags_dhahelper 8468 CFLAGS_DHAHELPER = $cflags_dhahelper
8468 CFLAGS_FAAD_FIXED = $cflags_faad_fixed 8469 CFLAGS_FAAD_FIXED = $cflags_faad_fixed
8469 CFLAGS_LIBDVDCSS = $cflags_libdvdcss 8470 CFLAGS_LIBDVDCSS = $cflags_libdvdcss
8470 CFLAGS_LIBDVDCSS_DVDREAD = $cflags_libdvdcss_dvdread 8471 CFLAGS_LIBDVDCSS_DVDREAD = $cflags_libdvdcss_dvdread