The configuration parameters in mysqld_safe and systemd slightly differ from what the libnuma dependency in InnoDB is doing, because they should affect all memory allocation, while InnoDB only controls the allocation of the buffer pool. Other global buffers, such as the redo log record buffer, would be allocated using the defaults.
My intuition suggests that it might be useful to treat strictly thread-local memory allocations differently from allocations of memory that is likely frequently accessed by multiple threads. It could be interesting to compare WITH_NUMA=ON to the ‘wrapper’ solution in a read-only benchmark (read-only, so that the allocation of the redo log buffer would not matter).
If benchmarks suggest that WITH_NUMA=ON is not faster, then maybe we should remove the compile-time option altogether. Else, we should consider introducing the build dependency in a future major version.
acs-ferreira, where did you install MariaDB from? I think that this is an issue with the build environment or build scripts; the source code for this parameter has not been removed.