]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix function overrides in unit tests on macOS
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)
commitb60d7345edae90560721c20d705ab32563abccb6
tree46e437abeae09b91612f8aa3641a47417ce49250
parent8bdba2edebeb203ab911ddad02ff1fedeb11cd10
Fix function overrides in unit tests on macOS

Since Mac OS X 10.1, Mach-O object files are by default built with a
so-called two-level namespace which prevents symbol lookups in BIND unit
tests that attempt to override the implementations of certain library
functions from working as intended.  This feature can be disabled by
passing the "-flat_namespace" flag to the linker.  Fix unit tests
affected by this issue on macOS by adding "-flat_namespace" to LDFLAGS
used for building all object files on that operating system (it is not
enough to only set that flag for the unit test executables).
Makefile.top
configure.ac
fuzz/Makefile.am
lib/bind9/Makefile.am
lib/dns/Makefile.am
lib/irs/Makefile.am
lib/isc/Makefile.am
lib/isccc/Makefile.am
lib/isccfg/Makefile.am
lib/ns/Makefile.am