Skip to content

Commit f65f702

Browse files
committed
meson.build: Fixes for *BSD
Add NetBSD and OpenBSD. FreeBSD and OpenBSD use libc++.
1 parent 0c9a557 commit f65f702

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ cpp_lib = '-lstdc++'
5757
libm_dep = cpp.find_library('m', required : false)
5858
deps += [libm_dep]
5959

60-
if ['linux', 'freebsd', 'android', 'ios', 'darwin'].contains(system)
60+
if ['linux', 'android', 'ios', 'darwin', 'freebsd', 'netbsd', 'openbsd'].contains(system)
6161
asm_format32 = 'elf'
6262
asm_format64 = 'elf64'
6363
if ['ios', 'darwin'].contains(system)
@@ -109,7 +109,7 @@ if ['linux', 'freebsd', 'android', 'ios', 'darwin'].contains(system)
109109
error('FIXME: unhandled CPU family @0@ for @1@'.format(cpu_family, system))
110110
endif
111111

112-
if ['ios', 'darwin', 'android'].contains(system)
112+
if ['ios', 'darwin', 'android', 'freebsd', 'openbsd'].contains(system)
113113
cpp_lib = '-lc++'
114114
endif
115115
elif system == 'windows'

0 commit comments

Comments
 (0)