summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorFerruh Yigit <ferruh.yigit@intel.com>2019-01-14 15:49:35 +0000
committerThomas Monjalon <thomas@monjalon.net>2019-01-14 17:27:48 +0100
commita32ca9a4ebc1350ce48df0222decef95a72b742b (patch)
treedba4242ba996025414bf1935a66a4e1a49f11552 /config
parentbf78d4dc2ba64e69fda4cc569f99cfb4c806474a (diff)
downloaddpdk-draft-windows-a32ca9a4ebc1350ce48df0222decef95a72b742b.zip
dpdk-draft-windows-a32ca9a4ebc1350ce48df0222decef95a72b742b.tar.gz
dpdk-draft-windows-a32ca9a4ebc1350ce48df0222decef95a72b742b.tar.xz
mk: fix scope of disabling AVX512F support
AVX512 was disabled for GCC because of Bugzilla issue 97 [1], the GCC defect submitted for the issue [2] highlighted that this is a known binutils version 2.30 issue. Narrowed the scope of no-avx512 to the this specific binutils version. [1] https://bugs.dpdk.org/show_bug.cgi?id=97 [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88096 Fixes: 8d07c82b239f ("mk: disable gcc AVX512F support") Cc: stable@dpdk.org Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
Diffstat (limited to 'config')
-rw-r--r--config/meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/meson.build b/config/meson.build
index db32499..40802fc 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -43,6 +43,14 @@ toolchain = cc.get_id()
dpdk_conf.set_quoted('RTE_TOOLCHAIN', toolchain)
dpdk_conf.set('RTE_TOOLCHAIN_' + toolchain.to_upper(), 1)
+# get binutils version for the workaround of Bug 97
+ldver = run_command('ld', '-v').stdout().strip()
+if ldver.contains('2.30')
+ if cc.has_argument('-mno-avx512f')
+ machine_args += '-mno-avx512f'
+ endif
+endif
+
add_project_link_arguments('-Wl,--no-as-needed', language: 'c')
dpdk_extra_ldflags += '-Wl,--no-as-needed'