-
Notifications
You must be signed in to change notification settings - Fork 98
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
Add Pthreads (and possibly other) flags to the pkg-config file #332
Conversation
Just gathering the context, is this to serve building libqb |
|
Thanks, was just curious since I vaguely remember Can you add this "static compiling" + "completeness" justifications Also would mention that gethostbyname/libnsl and libglib counterparts Thanks |
Proper Libs.private enables linking applications statically against libqb: static archives (.a) don't carry their own dependency information, unlike shared libraries (.so). Modern libc versions include socket and RT functions, so socket_LIBS and rt_LIBS will be empty there, but we include them for strict correctness on older platforms; basically, we're matching libqb_la_LIBADD here. Consequently, nsl_LIBS and GLIB_LIBS don't enter this field, since they are only used in the examples and tests, not in the library proper. Cflags, on the other hand, is emitted all the time and (under GCC) propagates the -pthread option (which also affects the preprocessing stage) to all users of libqb even when compiling modules or linking everything dynamically. Signed-off-by: Ferenc Wágner <[email protected]>
I rebased the commit keeping the content but with extended message. |
I think the commit message is fine as documentation. As you say comments can get stale and it seems to be routine to check commit messages these days when checking when/why things happen. Thanks Feri & Poki, |
Thanks for the merge. |
I'm not sure. github being weird I suspect! I should maybe do manual commits if it's going to start happening regularly. which removes half the reason for having GH features in the first place. sigh Sorry |
Happens easily when single-button-laziness prevails, and I've already So yes, please finally do retain a full control over the commits to hit That would also avoid the silliness of undesired authorship handling: Hopefully that's enough of a justification. |
No description provided.