Integrate parts of meta-intel-iot-security
[AGL/meta-agl.git] / meta-security / recipes-security / cynara / cynara / gmock-pthread-linking.patch
1 From 80cc04091410d6a322fee1a2922fdf867395f00a Mon Sep 17 00:00:00 2001
2 From: Patrick Ohly <patrick.ohly@intel.com>
3 Date: Fri, 29 May 2015 10:21:57 +0200
4 Subject: [PATCH] work around gmock pthread dependency
5
6 In meta-oe, gmock's .pc file does not declare that users of
7 gmock must link against pthread. Let's work around that
8 here by always linking tests against libpthread.
9
10 Upstream-status: Inappropriate [embedded specific]
11
12 Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
13 ---
14  test/CMakeLists.txt | 1 +
15  1 file changed, 1 insertion(+)
16
17 diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
18 index 25a70db..f490a24 100644
19 --- a/test/CMakeLists.txt
20 +++ b/test/CMakeLists.txt
21 @@ -138,6 +138,7 @@ ADD_EXECUTABLE(${TARGET_CYNARA_TESTS}
22  TARGET_LINK_LIBRARIES(${TARGET_CYNARA_TESTS}
23      ${PKGS_LDFLAGS}
24      ${PKGS_LIBRARIES}
25 +    pthread
26      crypt
27  )
28  INSTALL(TARGETS ${TARGET_CYNARA_TESTS} DESTINATION ${BIN_INSTALL_DIR})
29 -- 
30 2.1.4
31