FS-8623: Fix libvpx Solaris Studio build

This commit is contained in:
Spencer Thomason 2016-05-10 18:18:19 -07:00
parent 3fca86c81f
commit 6ae15b9fa1
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() {