Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] patches from pkgsrc for discussion, based on 1.6.1

Greg Troxel <gdt@xxxxxxxxxx> writes:

> I am also carrying a patch to disable -ldl.  NetBSD has no such library.
> I'm not sure what's usually in it, whether POSIX specifies that it
> should exist, or if it should be used under what circumstances.

POSIX says that dlopen and dlsym can just be used, and makes no mention
of -ldl:

  https://pubs.opengroup.org/onlinepubs/9699919799/functions/dlopen.html

So I'd say that including dl is exceptional and it should be included
only on systems known to need it.



Back to the top