]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: reference libdl only once
authorWilly Tarreau <w@1wt.eu>
Wed, 14 Dec 2022 17:46:48 +0000 (18:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
commit682b78b4e67ab6f216f482fea073d352a37d12ed
tree3d845897b091f0762be3937e51f5d3d32acfb36a
parent914a668077f6dfdefcf0f3768d57f8e9858b828c
BUILD: makefile: reference libdl only once

There used to be special cases where USE_DL was only for the SSL library,
then for Lua, then was used globally, but each of them kept their own copy
of -ldl. When building on a system supporting libdl, with SSL and Lua
enabled, no less than 3 -ldl are found on the linker's command line.

What matters is only that it's close to the end, so let's remove the old
specific ones and move the global one to the end. The option now uses its
own DL_LDFLAGS that is automatically collected into OPTIONS_LDFLAGS.
Makefile