platform/meson: Check for libi386 on NetBSD
The 32-bit library is called libi386, not libx86. Fixes building with
Meson on i386 NetBSD.
Change-Id: Ib9e1aa16558dc24f0bf14dd573934cf5164d67e8
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/129
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/platform/meson.build b/platform/meson.build
index fcd32f8..e4dc7c5 100644
--- a/platform/meson.build
+++ b/platform/meson.build
@@ -21,11 +21,11 @@
endif
endif
-# NetBSD requires libx86 or libx86_64 for I/O port handling
+# NetBSD requires libi386 or libx86_64 for I/O port handling
if host_machine.system() == 'netbsd'
if host_machine.cpu_family() == 'x86'
- libx86 = cc.find_library('x86')
- deps += libx86
+ libi386 = cc.find_library('i386')
+ deps += libi386
elif host_machine.cpu_family() == 'x86_64'
libx86_64 = cc.find_library('x86_64')
deps += libx86_64