--- mesonbuild/dependencies/dev.py.orig 2020-05-15 17:23:11.000000000 +1000 +++ mesonbuild/dependencies/dev.py 2020-08-26 12:03:41.481438000 +1000 @@ -245,6 +245,8 @@ generates. Currently it works around the following: + - BSDSUniX: when statically linking -l/usr/lib/libexecinfo.so will + be generated, strip the -l in cases like this. - FreeBSD: when statically linking -l/usr/lib/libexecinfo.so will be generated, strip the -l in cases like this. - Windows: We may get -LIBPATH:... which is later interpreted as @@ -464,7 +466,7 @@ # I'm not sure this is entirely correct. What if we're cross compiling # from something to macOS? if ((m.is_darwin() and isinstance(self.clib_compiler, (AppleClangCCompiler, AppleClangCPPCompiler))) or - m.is_freebsd() or m.is_dragonflybsd()): + m.is_bsdsunix() or m.is_freebsd() or m.is_dragonflybsd()): self.is_found = True self.link_args = ['-lz']