Debugging a certain package requires compiling it with various types of C*FLAGS, after which the original CFLAGS has to be restored by recompilation.
Doing this frequently takes a lot of compile times; as a result I suggest a portage feature where a binary package can be made with it's checksum on it's file name.
There can be a FEATURE "binchksum" where making a binary off an installed package will result in it's checksum to be included in it's file name, that way the user can store binaries of the same ebuild with different compile flag options.
The Packages file in the PKGDIR should be modified to contain the build time flags and compiler information of the particular package.
There must be ways to display the same information also.
Duplicate of bug #150031.
*** This bug has been marked as a duplicate of bug 150031 ***