Merge pull request #846 in FS/freeswitch from ~SJTHOMASON/freeswitch:bugfix/FS-8623-solaris-studio-build-error to master

* commit '6ae15b9fa1ae4f636e7bb4d1459671a6b1606f9e':
  FS-8623: Fix libvpx Solaris Studio build
This commit is contained in:
Mike Jerris 2016-05-11 11:06:42 -05:00
commit 8b597dbe30
1 changed files with 12 additions and 2 deletions

View File

@ -317,10 +317,20 @@ EOF
}
check_cflags() {
log check_cflags "$@"
check_cc -Werror "$@" <<EOF
log check_cflags "$@"
case "$CC" in
*gcc*|*clang)
check_cc -Werror "$@" <<EOF
int x;
EOF
;;
*)
check_cc "$@" <<EOF
int x;
EOF
;;
esac
}
check_cxxflags() {