Note that current rpm also expands %build_ldflags into export LD_FLAGS=... So we can append -g to %build_ldflags if _build_create_debug is set?