]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make the symbol wrapping work with dynamic linking
authorEvan Hunt <each@isc.org>
Mon, 15 Apr 2019 20:41:21 +0000 (13:41 -0700)
committerOndřej Surý <ondrej@sury.org>
Mon, 22 Jul 2019 21:20:19 +0000 (17:20 -0400)
commitb8e6b68d8883a4ffc6eacc9596aea8046f1db800
treed9696773f187dcbefb235af955b44dcd1f6bd3c4
parent6ba4b02d67931f8cb5541c8f0a13ba4beae7a9fb
Make the symbol wrapping work with dynamic linking

When the unit test is linked with dynamic libraries, the wrapping
doesn't occur, probably because it's different translation unit.

To workaround the issue, we provide thin wrappers with *real* symbol
names that just call the mocked functions.

(cherry picked from commit 839ed7894bffb4694406d1a8d8ed8f4f840b97ef)
lib/dns/tests/tkey_test.c