]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8623: reapply after update: Fix libvpx Solaris Studio build
authorMike Jerris <mike@jerris.com>
Mon, 26 Sep 2016 18:38:30 +0000 (14:38 -0400)
committerMike Jerris <mike@jerris.com>
Mon, 26 Sep 2016 18:38:30 +0000 (14:38 -0400)
libs/libvpx/build/make/configure.sh

index 35609e89af451c14489cb4a0a6e0e3ebd9f77d16..745e10ddc8a8955a00b73bb3c38ffdc80beee8a9 100644 (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() {