]> git.ipfire.org Git - thirdparty/bind9.git/commit
Drop function wrapping as it is redundant for now
authorMichał Kępień <michal@isc.org>
Mon, 28 Sep 2020 07:09:21 +0000 (09:09 +0200)
committerMichał Kępień <michal@isc.org>
Mon, 28 Sep 2020 07:09:21 +0000 (09:09 +0200)
commit8bdba2edebeb203ab911ddad02ff1fedeb11cd10
treed676768e7885353652070c2ba1d25ce842b5a59e
parentaee29706f2a1cdecdce5f91cfe552984e6eefe57
Drop function wrapping as it is redundant for now

As currently used in the BIND source tree, the --wrap linker option is
redundant because:

  - static builds are no longer supported,

  - there is no need to wrap around existing functions - what is
    actually required (at least for now) is to replace them altogether
    in unit tests,

  - only functions exposed by shared libraries linked into unit test
    binaries are currently being replaced.

Given the above, providing the alternative implementations of functions
to be overridden in lib/ns/tests/nstest.c is a much simpler alternative
to using the --wrap linker option.  Drop the code detecting support for
the latter from configure.ac, simplify the relevant Makefile.am, and
remove lib/ns/tests/wrap.c, updating lib/ns/tests/nstest.c accordingly
(it is harmless for unit tests which are not calling the overridden
functions).
configure.ac
lib/ns/tests/Makefile.am
lib/ns/tests/nstest.c
lib/ns/tests/wrap.c [deleted file]
util/copyrights