Skip to content

cmake: allow building liblphobos with system zlib#4716

Closed
liushuyu wants to merge 1 commit intoldc-developers:masterfrom
liushuyu:system-zlib
Closed

cmake: allow building liblphobos with system zlib#4716
liushuyu wants to merge 1 commit intoldc-developers:masterfrom
liushuyu:system-zlib

Conversation

@liushuyu
Copy link
Copy Markdown
Contributor

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.

@kinke
Copy link
Copy Markdown
Member

kinke commented Jul 31, 2024

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
Copy link
Copy Markdown
Member

kinke commented Sep 7, 2024

Superseded by #4742.

@kinke kinke closed this Sep 7, 2024
@kinke kinke reopened this Sep 7, 2024
@kinke kinke closed this Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants