python built with optimizations uses LTO and in order to have debug
info all debug flags need to be repeated for linker
CFLAGS_NODIST="%{!?with_semantic_interposition: -fno-semantic-interposition}" \
CPPFLAGS="%{rpmcppflags}" \
LDFLAGS="%{rpmldflags}" \
- LDFLAGS_NODIST="%{!?with_semantic_interposition: -fno-semantic-interposition}" \
+ LDFLAGS_NODIST="%{debuginfocflags}%{!?with_semantic_interposition: -fno-semantic-interposition}" \
ac_cv_posix_semaphores_enabled=yes \
ac_cv_broken_sem_getvalue=no \
--enable-ipv6 \