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 <k.torp@samsung.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
Karl Bonde Torp 2022-02-14 12:43:13 +01:00 committed by Thomas Monjalon
parent 762cdb7b68
commit 4bab7ea60c

View File

@ -31,6 +31,9 @@ if host_machine.system() == 'windows'
pmdinfo += 'llvm-ar' pmdinfo += 'llvm-ar'
endif endif
pmdinfogen += 'coff' pmdinfogen += 'coff'
elif host_machine.system() == 'freebsd'
pmdinfo += 'llvm-ar'
pmdinfogen += 'elf'
else else
pmdinfo += 'ar' pmdinfo += 'ar'
pmdinfogen += 'elf' pmdinfogen += 'elf'