[PATCH] Allow disabling use of gold linker when LTO is enabled (#53126)
gold is not / no longer needed to link binaries with LTO. As gold is not available on every architecture, allow building CDDA with the default linker, even when LTO is enabled.
create directories needed for test CDDA and the tests currently require ~/.config and ~/.local/share to exist, as otherwise it can't create its own directory. As a workaround until the upstream bug is fixed, the directories are created before running the tests. This is okay for dh_auto_test, as it creates a temporary home directory in debian/.debhelper/.