These options don't make sense when building portable code, but when
using the dev script, OVS is built on the same system it's run on.
They make a small difference in the OVS DPDK testing, hence their
addition.

Signed-off-by: Ethan Jackson <et...@nicira.com>
---
 utilities/ovs-dev.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py
index 496f6dc..e454e18 100755
--- a/utilities/ovs-dev.py
+++ b/utilities/ovs-dev.py
@@ -63,7 +63,7 @@ def conf():
                  "--with-logdir=%s/log" % ROOT, "--with-rundir=%s/run" % ROOT,
                  "--enable-silent-rules", "--with-dbdir=" + ROOT, "--silent"]
 
-    cflags = "-g -fno-omit-frame-pointer"
+    cflags = "-g -fno-omit-frame-pointer -march=native"
 
     if options.werror:
         configure.append("--enable-Werror")
@@ -83,8 +83,6 @@ def conf():
 
     cflags += " -O%d" % options.optimize
 
-    ENV["CFLAGS"] = cflags
-
     _sh("./boot.sh")
 
     try:
@@ -93,6 +91,7 @@ def conf():
         pass # Directory exists.
 
     os.chdir(BUILD_GCC)
+    ENV["CFLAGS"] = cflags + " -finline-limit=50000"
     _sh(*(configure + ["--with-linux=/lib/modules/%s/build" % uname()]))
 
     try:
@@ -114,6 +113,7 @@ def conf():
             pass # Directory exists.
 
         ENV["CC"] = "clang"
+        ENV["CFLAGS"] = cflags
         os.chdir(BUILD_CLANG)
         _sh(*configure)
 
-- 
1.8.1.2

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to