Purpose of patches removing "-ldl"

Linking against libdl is harmless, but unnecessary.
dlopen(3)
Other ELF platforms require linking with library "libdl" to provide
dlopen() and other functions. FreeBSD does not require linking with the
library, but supports it for compatibility.

Edit: Not always harmless. See below.
 
Back
Top