分类: LINUX
2013-12-04 23:32:57
原文地址:rpmbuild, debuginfo, gdb ... 作者:slimzhao
rpmbuild has a new feature in that it will automatically create a-debuginfo package when you (re)build a package. This is documented in
the RELEASE-NOTES:
--------------------------------------------------------------------------------------------------
o GDB has been enhanced to allow debugging information for applications
to be read from separate files. This makes it possible to extract
debugging information from binaries and place them in a supplemental
package. During the development of Red Hat Linux 9,
"debuginfo" packages were generated for nearly every package by
implementing special RPM macros. By default, the RPM macro
configuration in Red Hat Linux 9 generates "debuginfo"
packages. If you are building packages and do not want to generate
"debuginfo" packages, add the following to your ~/.rpmmacros file:
%define debug_package %{nil}
-----------------------------------------------------------------------------------------------------
However, this is not exactly correct. To disable this feature you need to add
the following to ~/.rpmmacros:
%debug_package %{nil}