[x264-devel] configure: Don't try to detect clang by $CC

Anton Mitrofanov git at videolan.org
Tue May 23 18:04:30 CEST 2017


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Mon May 22 23:59:32 2017 +0300| [f1ac7122645bbeb56e7a4401f71a7055cb2431c4] | committer: Henrik Gramner

configure: Don't try to detect clang by $CC

Only check if option -Werror=unknown-warning-option is supported before adding it

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=f1ac7122645bbeb56e7a4401f71a7055cb2431c4
---

 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 52871c43..f7b14d9d 100755
--- a/configure
+++ b/configure
@@ -589,7 +589,7 @@ else
     fi
 fi
 
-if [[ "$cc_base" = clang* ]]; then
+if [ $compiler = GNU ]; then
     if cc_check '' -Werror=unknown-warning-option ; then
         CHECK_CFLAGS="$CHECK_CFLAGS -Werror=unknown-warning-option"
     fi



More information about the x264-devel mailing list