Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Pthreads (and possibly other) flags to the pkg-config file (#332)
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]>
- Loading branch information