On Sun, Nov 5, 2017 at 2:14 PM, Samuel Thibault <[email protected]> wrote: > László Böszörményi (GCS), on dim. 05 nov. 2017 14:12:18 +0100, wrote: >> > I'd say that libexpat1-dev should just not expose -lbsd, since users of >> > libexpat don't actually need to link against libbsd directly, it will >> > get pulled automatically at runtime. >> At runtime, yes - but during compilation libbsd-dev should be present. > > Why? On kfreebsd-* and hurd-i386 architectures libexpat uses arc4random_buf() from libbsd and thus links to it. Hence anything links to expat on these architectures, may use this function indirectly. If you don't link to libbsd and / or the .so symlink is not present, you will get undefined symbol of the mentioned function. On Linux architectures, it uses a syscall for random number generation and thus don't need to link with additional libraries.
Laszlo/GCS

