travis: Fix clang build for DPDK-2.0.
authorJoe Stringer <joestringer@nicira.com>
Thu, 7 May 2015 20:36:43 +0000 (13:36 -0700)
committerJoe Stringer <joestringer@nicira.com>
Fri, 8 May 2015 16:49:07 +0000 (09:49 -0700)
-Wno-cast-align is a CFLAG, not a configure option.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
.travis/build.sh

index c7796e1..6dfc9fe 100755 (executable)
@@ -74,7 +74,7 @@ if [ "$DPDK" ]; then
     install_dpdk $DPDK_VER
     if [ "$CC" = "clang" ]; then
         # Disregard cast alignment errors until DPDK is fixed
-        EXTRA_OPTS="$EXTRA_OPTS -Wno-cast-align"
+        CFLAGS="$CFLAGS -Wno-cast-align"
     fi
     EXTRA_OPTS="$EXTRA_OPTS --with-dpdk=./dpdk-$DPDK_VER/build"
 elif [ "$CC" != "clang" ]; then