bind9/util
Michał Kępień e05e5d7c12 Clean up use of function wrapping
Currently, building BIND using "--without-dlopen" universally breaks
building unit tests which employ the --wrap linker option (because the
replacement functions are put in a shared library and building shared
objects requires "--with-dlopen").  Fix by moving the overridden symbol,
isc_nmhandle_unref(), to lib/ns/tests/nstest.c and dropping
lib/ns/tests/wrap.c altogether.  This makes lib/ns/tests/Makefile.in
simpler and prevents --without-dlopen from messing with the process of
building unit tests.

Remove parts of configure.ac which are made redundant by the above
changes.

Put the replacement definition of isc_nmhandle_unref() inside an #ifdef
block, so that the build does not break for non-libtool builds (see
below).

These changes allow the broadest possible set of build variants to work
while also simplifying the build process:

  - for libtool builds, overriding isc_nmhandle_unref() is done by
    placing that symbol directly in lib/ns/tests/nstest.c and relying on
    the dynamic linker to perform symbol resolution in the expected way
    when the test binary is run,

  - for non-libtool builds, overriding isc_nmhandle_unref() is done
    using the --wrap linker option (the libtool approach cannot be used
    in this case as multiple strong symbols with the same name cannot
    coexist in the same binary),

  - the "--without-dlopen" option no longer affects building unit tests.
2020-09-28 09:16:48 +02:00
..
api-checker.sh update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
bindkeys.pl update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
branchsync.sh update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
check-ans-prereq.sh update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
check-categories.sh update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
check-changes update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
check-cocci Run the check-cocci on the whole tree, allow passing extra arguments 2020-02-08 03:12:09 -08:00
check-includes.pl update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
check-instincludes.sh update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
check-make-install.in update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
check-pullups.pl update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
check-sources.pl update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
check-win32util-configure update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
checklibs.sh update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
commit-arm.sh update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
COPYRIGHT fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:47:50 -07:00
COPYRIGHT.BRIEF fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:47:50 -07:00
COPYRIGHT.BSDI fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:47:50 -07:00
COPYRIGHT.NAI fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:47:50 -07:00
COPYRIGHT.NOM fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:47:50 -07:00
COPYRIGHT.PORTION fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:47:50 -07:00
COPYRIGHT.TOP fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:47:50 -07:00
copyrights Clean up use of function wrapping 2020-09-28 09:16:48 +02:00
git-replay-merge.sh update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
kit.sh update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
mandoc2docbook.pl update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
mdnbuildtest.sh update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
memleak.pl update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
merge_copyrights update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
mksymtbl.pl update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
models.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
nanny.pl update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
new-func update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
nt-kit update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
pairwise-testing.sh Add pairwise testing 2020-09-22 11:39:08 +02:00
parse_tsan.py update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
run-clang-tidy Merge branch '46-add-curly-braces' into 'master' 2020-02-13 21:28:35 +00:00
spacewhack.pl update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
suppressions.txt Suppress unknownMacro directive which is currently broken with OpenSSL 2020-02-04 11:09:22 +01:00
tabify-changes update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
update-drafts.pl update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
update_branches update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
update_copyrights update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
xc update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00