[PATCH] build: fix build on FreeBSD with Meson 0.61.1
Bruce Richardson
bruce.richardson at intel.com
Mon Feb 14 14:48:23 CET 2022
On Mon, Feb 14, 2022 at 12:43:13PM +0100, Karl Bonde Torp wrote:
> When building with Meson 0.61.1 on FreeBSD some archives become
> corrupted. This can be avoided by using 'llvm-ar' instead of 'ar'.
>
> Signed-off-by: Karl Bonde Torp <k.torp at samsung.com>
> ---
Hi,
thanks for the patch. Can you perhaps provide some instructions or more
details as to how/when you see this issue? A clean build of mine on FreeBSD
with meson 0.61.1 didn't seem to flag up any problems and I'd like to
reproduce the issue to verify the fix.
/Bruce
> 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'
> --
> 2.35.1
>
More information about the dev
mailing list