Mercurial > mplayer.hg
comparison configure @ 35909:bc57212092a8
configure: Set CPPFLAGS to enable commonly used system features
MPlayer relies on POSIX, XOPEN and C99 features being available. However,
the necessary CPPFLAGS to enable those features are not set explicitly;
they are just used in some configure tests. Set flags for these features
explicitly in order to ensure they are always available.
author | diego |
---|---|
date | Sun, 17 Mar 2013 22:47:46 +0000 |
parents | 6796199fb62a |
children | a326bc4cec53 |
comparison
equal
deleted
inserted
replaced
35908:6796199fb62a | 35909:bc57212092a8 |
---|---|
2719 fi | 2719 fi |
2720 else | 2720 else |
2721 warn_cflags=yes | 2721 warn_cflags=yes |
2722 fi | 2722 fi |
2723 | 2723 |
2724 CFLAGS="-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $CFLAGS" | |
2725 | |
2724 if test "$cc_vendor" = "gnu" ; then | 2726 if test "$cc_vendor" = "gnu" ; then |
2725 cflag_check -fno-tree-vectorize && CFLAGS="$CFLAGS -fno-tree-vectorize" | 2727 cflag_check -fno-tree-vectorize && CFLAGS="$CFLAGS -fno-tree-vectorize" |
2726 cflag_check -Wundef && WARNFLAGS="-Wundef $WARNFLAGS" | 2728 cflag_check -Wundef && WARNFLAGS="-Wundef $WARNFLAGS" |
2727 cflag_check -std=gnu99 && WARN_CFLAGS="-std=gnu99 $WARN_CFLAGS" | 2729 cflag_check -std=gnu99 && WARN_CFLAGS="-std=gnu99 $WARN_CFLAGS" |
2728 cflag_check -Wdeclaration-after-statement && WARN_CFLAGS="-Wdeclaration-after-statement $WARN_CFLAGS" | 2730 cflag_check -Wdeclaration-after-statement && WARN_CFLAGS="-Wdeclaration-after-statement $WARN_CFLAGS" |
2729 cflag_check -Wno-pointer-sign && WARN_CFLAGS="-Wno-pointer-sign $WARN_CFLAGS" | 2731 cflag_check -Wno-pointer-sign && WARN_CFLAGS="-Wno-pointer-sign $WARN_CFLAGS" |
2730 cflag_check -Wdisabled-optimization && WARN_CFLAGS="-Wdisabled-optimization $WARN_CFLAGS" | 2732 cflag_check -Wdisabled-optimization && WARN_CFLAGS="-Wdisabled-optimization $WARN_CFLAGS" |
2731 cflag_check -Wmissing-prototypes && WARN_CFLAGS="-Wmissing-prototypes $WARN_CFLAGS" | 2733 cflag_check -Wmissing-prototypes && WARN_CFLAGS="-Wmissing-prototypes $WARN_CFLAGS" |
2732 cflag_check -Wstrict-prototypes && WARN_CFLAGS="-Wstrict-prototypes $WARN_CFLAGS" | 2734 cflag_check -Wstrict-prototypes && WARN_CFLAGS="-Wstrict-prototypes $WARN_CFLAGS" |
2733 else | |
2734 CFLAGS="-D_ISOC99_SOURCE $CFLAGS" | |
2735 fi | 2735 fi |
2736 | 2736 |
2737 cflag_check -mno-omit-leaf-frame-pointer && cflags_no_omit_leaf_frame_pointer="-mno-omit-leaf-frame-pointer" | 2737 cflag_check -mno-omit-leaf-frame-pointer && cflags_no_omit_leaf_frame_pointer="-mno-omit-leaf-frame-pointer" |
2738 cflag_check -MD -MP && DEPFLAGS="-MD -MP" | 2738 cflag_check -MD -MP && DEPFLAGS="-MD -MP" |
2739 | 2739 |