]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8623: Fix libvpx Solaris Studio build
authorSpencer Thomason <spencer@whiteskycommunications.com>
Wed, 11 May 2016 01:18:19 +0000 (18:18 -0700)
committerSpencer Thomason <spencer@whiteskycommunications.com>
Wed, 11 May 2016 01:18:19 +0000 (18:18 -0700)
libs/libvpx/build/make/configure.sh

index d888268dc8fa59623530e5a4c3ad00b04b0c0de2..c8a3291b74d9e8e3d8f7e2be87e5b2ab41c271d3 100644 (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() {