Building MariaDB server of any version starting from 10.1 fails on MacOS.
Building failure happens on attempt to link any executable file.
Building process breaks due to the use of the unsupported -z flag in the linker options.
In result cmake terminates building with the following output:
ld: unknown option: -z
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Unsupported linker option is added by the following cmake macros
that was introduced by the commit