It would nice that we can launch rpmbuild so that debug flags and no strip happens.
e.g.
rpmbuild --define 'sgugdebug 1' -ba something.spec --nocheck
This should
- Tweak the default rpmbuild CFLAGS,CXXFLAGS to be
-g -Og
- Tweak the default rpmbuild LDFLAGS to be
-Wl,-z,relro -Wl,-z,now (no RPATH)
- Override
__strip to be /bin/true
Not clear to me yet where these things should be tweaked or set.