Mercurial > mplayer.hg
changeset 27208:1a054f697218
Add -std=gnu99 to gcc CFLAGS if supported. This sets appropriate #defines to
avoid a bunch of implicit declaration warnings in (g)libc headers that define
certain functions conditional to those #defines.
author | diego |
---|---|
date | Tue, 08 Jul 2008 16:11:58 +0000 |
parents | e1c5299a4114 |
children | 73777e127a82 |
files | configure |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Tue Jul 08 15:55:32 2008 +0000 +++ b/configure Tue Jul 08 16:11:58 2008 +0000 @@ -7542,6 +7542,7 @@ int main(void) { return 0; } EOF if test "$cc_vendor" = "gnu" ; then + cc_check -std=gnu99 && CFLAGS="-std=gnu99 $CFLAGS" cc_check -Wdeclaration-after-statement && CFLAGS="-Wdeclaration-after-statement $CFLAGS" cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS" cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS"