Skip to content

Update rpmbuild macro environment to make debug builds simpler #150

@danielhams

Description

@danielhams

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

  1. Tweak the default rpmbuild CFLAGS,CXXFLAGS to be -g -Og
  2. Tweak the default rpmbuild LDFLAGS to be -Wl,-z,relro -Wl,-z,now (no RPATH)
  3. Override __strip to be /bin/true

Not clear to me yet where these things should be tweaked or set.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions