Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: allow building liblphobos with system zlib #4716

Closed
wants to merge 1 commit into from

Conversation

liushuyu
Copy link
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
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
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