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

cppzmq.pc still links the binaries with the shared library libzmq.so when the --static flag os given #636

Open
yurivict opened this issue Apr 18, 2024 · 0 comments

Comments

@yurivict
Copy link

yurivict commented Apr 18, 2024

This output is wrong:

$ pkg-config --static --cflags --libs cppzmq
-I/usr/local/include -DZMQ_BUILD_DRAFT_API=1 -I/usr/local/include/pgm-5.2 -L/usr/local/lib -lzmq -lstdc++ -lpthread -lrt -L/usr/local/lib -lnorm -L/usr/local/lib -lsodium -pthread -lpgm -lm

-L/usr/local/lib -lzmq causes the toolchain to link with the shared library, and also links again with dependencies of libzmq.so, which is a bogus behavior.

These 2 arguments should be replaced with /usr/local/lib/libzmq.a for static linking.

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

No branches or pull requests

1 participant