Mercurial > mplayer.hg
comparison configure @ 35928:67c0f68b3370
configure: Only add _POSIX_C_SOURCE and _XOPEN_SOURCE to CFLAGS for glibc.
author | diego |
---|---|
date | Wed, 20 Mar 2013 12:18:37 +0000 |
parents | 57761c0cbfe2 |
children | 39e518664273 |
comparison
equal
deleted
inserted
replaced
35927:e43fa34e33cf | 35928:67c0f68b3370 |
---|---|
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" | 2724 CFLAGS="-D_ISOC99_SOURCE $CFLAGS" |
2725 | |
2726 cpp_condition_check features.h "defined __GLIBC__" && | |
2727 CFLAGS="-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $CFLAGS" | |
2725 | 2728 |
2726 if test "$cc_vendor" = "gnu" ; then | 2729 if test "$cc_vendor" = "gnu" ; then |
2727 cflag_check -fno-tree-vectorize && CFLAGS="$CFLAGS -fno-tree-vectorize" | 2730 cflag_check -fno-tree-vectorize && CFLAGS="$CFLAGS -fno-tree-vectorize" |
2728 cflag_check -Wundef && WARNFLAGS="-Wundef $WARNFLAGS" | 2731 cflag_check -Wundef && WARNFLAGS="-Wundef $WARNFLAGS" |
2729 cflag_check -std=gnu99 && WARN_CFLAGS="-std=gnu99 $WARN_CFLAGS" | 2732 cflag_check -std=gnu99 && WARN_CFLAGS="-std=gnu99 $WARN_CFLAGS" |