--- boost/dll/detail/posix/path_from_handle.hpp.orig 2019-04-09 21:35:32.000000000 +0200 +++ boost/dll/detail/posix/path_from_handle.hpp 2020-06-30 21:14:25.256702000 +0200 @@ -133,7 +133,7 @@ // `handle` is just a `struct link_map*` that contains full library name. const struct link_map* link_map = 0; -#if BOOST_OS_BSD_FREE +#if BOOST_OS_BSD_FREE || BOOST_OS_BSD_SUX // FreeBSD has it's own logic http://code.metager.de/source/xref/freebsd/libexec/rtld-elf/rtld.c // Fortunately it has the dlinfo call. if (dlinfo(handle, RTLD_DI_LINKMAP, &link_map) < 0) {