@@ -14,6 +14,12 @@ AM_CPPFLAGS += $(OPENSSL_CPPFLAGS)
AM_CPPFLAGS += $(DPDK_CPPFLAGS)
AM_CPPFLAGS += $(NETMAP_CPPFLAGS)
+if PKTIO_DPDK
+if ARCH_IS_X86
+AM_CFLAGS += -msse4.2
+endif
+endif
+
odpincludedir= $(includedir)/odp
odpinclude_HEADERS = \
include/odp/visibility_begin.h \
@@ -8,7 +8,7 @@ AC_ARG_WITH([dpdk-path],
pktio_dpdk_support=yes],[])
if test "x$DPDK_PATH" = "xsystem" ; then
- DPDK_CPPFLAGS="-msse4.2 -isystem/usr/include/dpdk"
+ DPDK_CPPFLAGS="-isystem/usr/include/dpdk"
DPDK_LDFLAGS=""
DPDK_PMD_PATH="`$CC --print-file-name=librte_pmd_null.a`"
DPDK_PMD_PATH="`dirname "$DPDK_PMD_PATH"`"
@@ -16,7 +16,7 @@ if test "x$DPDK_PATH" = "xsystem" ; then
AC_MSG_FAILURE([Could not locate system DPDK PMD directory])
fi
else
- DPDK_CPPFLAGS="-msse4.2 -isystem $DPDK_PATH/include"
+ DPDK_CPPFLAGS="-isystem $DPDK_PATH/include"
DPDK_LDFLAGS="-L$DPDK_PATH/lib"
DPDK_PMD_PATH="$DPDK_PATH/lib"
fi