ldc icon indicating copy to clipboard operation
ldc copied to clipboard

cmake: allow building liblphobos with system zlib

Open liushuyu opened this issue 1 year ago • 1 comments

This pull request allows third-party distributors to build Phobos runtime shipped with LDC using the system zlib library.

Many Linux distributions ship their own patches to do this; this pull request tries to avoid that and provides a unified way to achieve this goal.

liushuyu avatar Jul 31 '24 02:07 liushuyu

Thanks. What's missing is making the compiler link the library, especially/only(?) when linking static Phobos. E.g., by adding it as defaultlib in ldc2.conf - something like -defaultlib=phobos2-ldc,z,druntime-ldc.

kinke avatar Jul 31 '24 10:07 kinke

Superseded by #4742.

kinke avatar Sep 07 '24 12:09 kinke