Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419645 - sys-libs/zlib ebuild removes static libraries containing DLL linking glue under mingw32
Summary: sys-libs/zlib ebuild removes static libraries containing DLL linking glue und...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Other
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-04 19:03 UTC by Maciej S. Szmigiero
Modified: 2012-08-18 04:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2012-06-04 19:03:37 UTC
When 

Reproducible: Always

Steps to Reproduce:
When "static-libs" USE flag is not enabled the zlib ebuild removes from library directory all files with .la and .a extensions.

However, under mingw32 this also removes libz.dll.a, which contains glue code
needed to link programs dynamically to zlib's DLL.
Without this library programs cannot link to zlib's DLL.

The line near the end of the zlib ebuild should be changed to 
"use static-libs || rm -f "${D}"/usr/$(get_libdir)/libz.{a,la}"
which will only remove the true static zlib libraries and keep
the glue library intact.
Comment 1 SpanKY gentoo-dev 2012-08-18 04:05:51 UTC
should be all set now in the tree; thanks for the report!

Commit message: Remove libz/libminizip static files by name to avoid deleting files for targets that need more
http://sources.gentoo.org/sys-libs/zlib/zlib-1.2.7.ebuild?r1=1.2&r2=1.3