]> granicus.if.org Git - libvpx/commitdiff
configure.sh fix for visual studio
authorJames Berry <jamesberry@google.com>
Mon, 24 Jan 2011 21:48:21 +0000 (16:48 -0500)
committerJames Berry <jamesberry@google.com>
Mon, 24 Jan 2011 21:57:20 +0000 (16:57 -0500)
-For targets with external build systems like visual
studio CC is not set so check_add_cflags will fail.
Only call this function if extra_cflags is set.

Change-Id: I3531bad69e9b6a59c5be1b0e8b6053ccccbc332c

build/make/configure.sh

index 75279b9b97f7a3eb8c6fd5eb370d45f829cfffa8..f8329aacd7dd2f773a49bc46351a446c670d360a 100755 (executable)
@@ -979,8 +979,10 @@ EOF
     fi
 
     # append any user defined extra cflags
-    check_add_cflags ${extra_cflags} || \
-    die "Requested extra CFLAGS '${extra_cflags}' not supported by compiler"
+    if [ -n "${extra_cflags}" ] ; then
+        check_add_cflags ${extra_cflags} || \
+        die "Requested extra CFLAGS '${extra_cflags}' not supported by compiler"
+    fi
 }
 
 process_toolchain() {