mk: fix detection of SSE4.2 on FreeBSD
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 7 Jul 2014 23:36:56 +0000 (00:36 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 18 Jul 2014 23:54:20 +0000 (01:54 +0200)
commitbda2ae11029f7e284923a3df02d25b4a3d3e63fc
tree6efcb33925a844601867a83e7044436e7bea51b3
parentbc9b2c694ff2de6e6d850344c79a0f0dadbf20db
mk: fix detection of SSE4.2 on FreeBSD

Add a special case to the native target makefile, where we check if
-march=native shows SSE4.2 support. If it does not, then not everything may
build, so we check if the hardware supports SSE4.2, and use a corei7 target
explicitly to get the SSE4.2 support.

Then ACL library, which requires SSE4.2, can be re-enabled for FreeBSD.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Zhaochen Zhan <zhaochen.zhan@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
config/defconfig_x86_64-native-bsdapp-gcc
mk/machine/native/rte.vars.mk