]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: initcall: apply initcall to all register_build_opts() calls
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 09:19:54 +0000 (10:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 18:50:32 +0000 (19:50 +0100)
commit8071338c786c364f0708e189267fe7fdfa64d686
tree5e01bcf63cc8265872497fabfc918f16374dc63b
parent86abe44e42fba96e8a46651f1e64a2e8a6d9f514
MINOR: initcall: apply initcall to all register_build_opts() calls

Most register_build_opts() calls use static strings. These ones were
replaced with a trivial REGISTER_BUILD_OPTS() statement adding the string
and its call to the STG_REGISTER section. A dedicated section could be
made for this if needed, but there are very few such calls for this to
be worth it. The calls made with computed strings however, like those
which retrieve OpenSSL's version or zlib's version, were moved to a
dedicated function to guarantee they are called late in the process.
For example, the SSL call probably requires that SSL_library_init()
has been called first.
12 files changed:
include/types/global.h
src/51d.c
src/auth.c
src/compression.c
src/da.c
src/hathreads.c
src/hlua.c
src/namespace.c
src/proto_tcp.c
src/regex.c
src/ssl_sock.c
src/wurfl.c