From: Herton R. Krzesinski on
gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1721#note_8962...
So the LDFLAGS issue manifests itself because %{?build_hostldflags} (which
comes from our redhat rpm config) contains the flag -Wl,--as-needed, and once
we fix the passing of LDFLAGS as we are trying here, the problem manifests.
Now how to fix the failure is something still to investigate.