FS-8623: reapply after update: Fix libvpx Solaris Studio build

This commit is contained in:
Mike Jerris 2016-09-26 14:38:30 -04:00
parent 07073175ee
commit ea463a615e
1 changed files with 12 additions and 2 deletions

View File

@ -332,10 +332,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() {