]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: link with libdl if needed for Lua support
authorVincent Bernat <vincent@bernat.im>
Thu, 16 Jul 2015 18:52:51 +0000 (20:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Jul 2015 07:47:02 +0000 (09:47 +0200)
commite192cbb585d40e8d467a1f740504b5604a3101ea
tree0e8ae68ab1dd196c27d60e922d0fba801fdec979
parented35c371dc8710547181fd524708e28a47bd7a95
BUILD: link with libdl if needed for Lua support

On platforms where the dl*() functions are not part of the libc, a
program linking Lua also needs to link to libdl.

Moreover, on platforms using a gold linker with the --as-needed flag,
the libdl library needs to be linked after linking Lua, otherwise, it
won't be marked as needed and will be discarded and its symbols won't be
present at the end of the linking phase.

Ubuntu enables the --as-needed flag by default. Other distributions may
advertise its use, like Gentoo.
Makefile