GCC 5 added the -gz option for compressing the debug section of generated binaries and should be safe as it only touches the debug sections. Currently this happens: strip-flags: CFLAGS: changed '-march=native -g3 -gdwarf-4 -O2 -pipe -gz' to '-march=native -g3 -gdwarf-4 -O2 -pipe' strip-flags: CXXFLAGS: changed '-march=native -g3 -gdwarf-4 -O2 -pipe -gz' to '-march=native -g3 -gdwarf-4 -O2 -pipe'
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbd036828459a4bf8a147d1f9c6caa698da8e814 commit cbd036828459a4bf8a147d1f9c6caa698da8e814 Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2017-12-15 21:47:31 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2017-12-15 21:48:26 +0000 flag-o-matic.eclass: Allow -gz for compressed debug sections, bug 636986 Closes: https://bugs.gentoo.org/636986 eclass/flag-o-matic.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)