Prevent strip when building an RPM package
Hi all,
I'm packaging some software into an rpm package. It consists of binaries and libraries. I'm building the binaries with a certain debug level enabled but when i run rpmbuild on my .spec file it strips the binaries and removes all debugging information and symbols, decreasing the size of the binaries. How do i prevent this???? I've tried commenting out the lines to strip ELF binaries in: /usr/lib/rpm/redhat/brp-redhat & /usr/lib/rpm/brp-redhat However when i run 'rpmbuild -ba <name of spec file>.spec' i can see that it still does strip! How can i disable this? Please let me know. Thanks! |
Something with the "debug_package" define?
|
I figured it out, don't worry about it!
|
Hi Sid,
I'm running into the same problem, what solution did you find? How to avoid the stripping? Help will be highly welcomed :) Thanks, Atqasap |
Quote:
|
Please post what you did. I'm having this problem too.
|
possible solution, ie. works for me
I also had this problem building rpm's with binaries that I did not want stripped. I solved the problem by adding the following line to the top of my spec file.
# Turn off strip'ng of binaries %global __strip /bin/true |
Thanks a lot, i'll check this out!
|
All times are GMT -5. The time now is 06:10 AM. |