[Bug 571686] mingw32 produced DLL's are not stripped

bugzilla at redhat.com bugzilla at redhat.com
Tue Mar 9 18:36:03 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=571686

--- Comment #2 from Mattias Ellert <mattias.ellert at fysast.uu.se> 2010-03-09 13:36:03 EST ---
None of the packages I build on Fedora 12 gets stripped, even though I follow
the guidelines on http://fedoraproject.org/wiki/Packaging/MinGW

Looking at the mingw32 packages in Fedora 12 some are stripped and some are
not. Looking at the specfiles of some of the packages that are stripped reveals
that they contain:

%define __debug_install_post %{_mingw32_debug_install_post}

and later

%{?_mingw32_debug_package}

Which seems to be the undocumented additions needed to get it to work.

Neither of these are mentioned in the guidelines, and searching for them in the
http://fedoraproject.org/wiki/ gives no hits.

As the guidelines are written, they say that if you follow the guidelines you
get stripped binaries:

> Libraries and executables should be stripped. This is done correctly and
> automatically if the spec file includes these lines:
> 
> %global __strip %{_mingw32_strip}
> %global __objdump %{_mingw32_objdump}

Which doesn't happen. To get stripped binaries you need to add two lines to
your specfile that are neither mentioned in the guidelines nor anywhere else.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the mingw mailing list