[Issue 16656] New: move embedded zlib to a separate library

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Nov 2 05:51:46 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16656

          Issue ID: 16656
           Summary: move embedded zlib to a separate library
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: code at dawg.eu

We'd like to get rid of the embedded zlib in phobos.
https://github.com/dlang/phobos/tree/fd518eb310a9494cccf28c54892542b052c49669/etc/c/zlib

As a shared zlib is available on literally any non-Windows OS, we should prefer
using that over statically linking.

For Windows we can integrate a DLL and import library with out binary releases,
similarly to how we handle libcurl. That means someone documents and builds
zlib [¹], we upload the results to downloads.dlang.org/other, and integrate it
with the build script [²][³].

[¹]: https://wiki.dlang.org/Curl_on_Windows
[²]:
https://github.com/dlang/installer/blob/8b3c7efe1e049f73ec5fc526a849904bf80b434d/create_dmd_release/build_all.d#L451
[³]:
https://github.com/dlang/installer/blob/8b3c7efe1e049f73ec5fc526a849904bf80b434d/create_dmd_release/build_all.d#L232

--


More information about the Digitalmars-d-bugs mailing list