[ovs-dev] [PATCH] acinclude.m4: Fix dpdk build if -mssse3 not supported.

Ilya Maximets i.maximets at samsung.com
Tue Jan 12 11:15:39 UTC 2016


On arm/arm64:
	gcc: error: unrecognized command line option '-mssse3'

Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
---
 acinclude.m4 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/acinclude.m4 b/acinclude.m4
index 9d652c2..6771f48 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -216,7 +216,8 @@ AC_DEFUN([OVS_CHECK_DPDK], [
     CFLAGS="$ovs_save_CFLAGS"
     LDFLAGS="$ovs_save_LDFLAGS"
     OVS_LDFLAGS="$OVS_LDFLAGS -L$DPDK_LIB_DIR"
-    OVS_CFLAGS="$OVS_CFLAGS -I$DPDK_INCLUDE -mssse3"
+    OVS_CFLAGS="$OVS_CFLAGS -I$DPDK_INCLUDE"
+    OVS_ENABLE_OPTION([-mssse3])
 
     # DPDK pmd drivers are not linked unless --whole-archive is used.
     #
-- 
2.5.0




More information about the dev mailing list