]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: tools: rely on __ELF__ not USE_DL to enable use of dladdr()
authorWilly Tarreau <w@1wt.eu>
Wed, 4 Mar 2020 09:31:58 +0000 (10:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Mar 2020 11:04:07 +0000 (12:04 +0100)
commit109201fc5c64ea1ae98e8f75f6890efa88d981bf
treee2b5122aa3dad8eea4716eee365a3d23ba864062
parent9133e48f2a6fa9deccfe02798dcb2f2abd26ed9e
BUILD: tools: rely on __ELF__ not USE_DL to enable use of dladdr()

The approach was wrong. USE_DL is for the makefile to know if it's required
to append -ldl at link time. Some platforms do not need it (and in fact do
not have it) yet they have a working dladdr(). The real condition is related
to ELF. Given that due to Lua, all platforms that require -ldl already have
USE_DL set, let's replace USE_DL with __ELF__ here and consider that dladdr
is always needed on ELF, which basically is already the case.
src/standard.c