From 4bab7ea60c25332e53ded18b7b101d37442b21b3 Mon Sep 17 00:00:00 2001 From: Karl Bonde Torp Date: Mon, 14 Feb 2022 12:43:13 +0100 Subject: [PATCH] build: fix build on FreeBSD with Meson 0.61.1 When building with Meson 0.61.1 on FreeBSD some archives become corrupted. This can be avoided by using 'llvm-ar' instead of 'ar'. Cc: stable@dpdk.org Signed-off-by: Karl Bonde Torp Acked-by: Bruce Richardson --- buildtools/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildtools/meson.build b/buildtools/meson.build index 400b88f251..e1c600e40f 100644 --- a/buildtools/meson.build +++ b/buildtools/meson.build @@ -31,6 +31,9 @@ if host_machine.system() == 'windows' pmdinfo += 'llvm-ar' endif pmdinfogen += 'coff' +elif host_machine.system() == 'freebsd' + pmdinfo += 'llvm-ar' + pmdinfogen += 'elf' else pmdinfo += 'ar' pmdinfogen += 'elf'