FindGLIB2.cmake: workaround to make static linking work
authorPeter Wu <peter@lekensteyn.nl>
Thu, 18 Oct 2018 17:38:51 +0000 (19:38 +0200)
committerAnders Broman <a.broman58@gmail.com>
Thu, 18 Oct 2018 20:06:16 +0000 (20:06 +0000)
commit54286eb09cca14f0931f094c3f4874a2701729a6
treeae17020fa671be451cb3acc8a411708034c7c4f2
parente6e2137459750cfac0b9ce7bcf259fe8bbccbede
FindGLIB2.cmake: workaround to make static linking work

When using pkg_search_module(GLIB2 glib-2.0), it will also include
transitive dependencies (pcre) in GLIB2_STATIC_LIBRARIES, but it will
still lack -pthread (which is in GLIB2_STATIC_LDFLAGS). For simplicity
just hardcode these.

Change-Id: Ia227f8b56e088c71210a748aeb2dedaba521c090
Reviewed-on: https://code.wireshark.org/review/30252
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
cmake/modules/FindGLIB2.cmake