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

Fix private linking of LibLZMA #667

Merged
merged 1 commit into from
Jan 15, 2023
Merged

Fix private linking of LibLZMA #667

merged 1 commit into from
Jan 15, 2023

Conversation

p2004a
Copy link
Contributor

@p2004a p2004a commented Jan 6, 2023

The current liblzma makes linke look for libliblzma as the lib prefix is added automatically. This is breaking static linking of library when using pkg-config for resolving dependencies.

The current `liblzma` makes linke look for `libliblzma` as the `lib` prefix is added automatically. This is breaking static linking of library when using pkg-config for resolving dependencies.
@nmoinvaz nmoinvaz changed the base branch from master to develop January 6, 2023 21:50
@p2004a
Copy link
Contributor Author

p2004a commented Jan 6, 2023

I've also now noticed, that now in the pc file, between version 3.0.7 and 3.0.8, ssl started to be linked using absolute paths instead of -lssl and -lcrypto:

3.0.7:

Libs.private: -lz -lliblzma -lssl -lcrypto

3.0.8

Libs.private: -lz -lliblzma -l/home/p2004a/Workspace/BAR/spring/spring-static-libs/lib/libssl.a -l/home/p2004a/Workspace/BAR/spring/spring-static-libs/lib/libcrypto.a -l-lpthread -ldl

and as you see the pthread is linked incorrectly... -l-lpthread

@nmoinvaz nmoinvaz merged commit 41c93fb into zlib-ng:develop Jan 15, 2023
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.

2 participants