1
0
yubico-piv-tool/pthread-link.patch
Torsten Gruner 9034b3b730 Accepting request 950309 from home:dirkmueller:Factory
- update to 2.2.1:
  * ykpiv: Minor bug fixes
  * ykcs11: Improved handling of object attributes
  * ykcs11: Update flags for EC related mechanisms
  * ykcs11: Minor bug fixes
  * test: Improved testing
  * doc: Improved documentation

OBS-URL: https://build.opensuse.org/request/show/950309
OBS-URL: https://build.opensuse.org/package/show/security/yubico-piv-tool?expand=0&rev=34
2022-02-01 14:37:49 +00:00

24 lines
975 B
Diff

Index: yubico-piv-tool-2.2.1/ykcs11/CMakeLists.txt
===================================================================
--- yubico-piv-tool-2.2.1.orig/ykcs11/CMakeLists.txt
+++ yubico-piv-tool-2.2.1/ykcs11/CMakeLists.txt
@@ -60,6 +60,9 @@ if(${ENABLE_HARDWARE_TESTS})
set(HW_TESTS 1)
endif(${ENABLE_HARDWARE_TESTS})
+set(THREADS_PREFER_PTHREAD_FLAG ON)
+find_package(Threads REQUIRED)
+
# static library
if(BUILD_STATIC_LIB)
add_library(ykcs11 STATIC ${SOURCE})
@@ -73,7 +76,7 @@ endif(BUILD_STATIC_LIB)
# dynamic library
add_library(ykcs11_shared SHARED ${SOURCE})
-target_link_libraries(ykcs11_shared ${LIBCRYPTO_LDFLAGS} ykpiv_shared)
+target_link_libraries(ykcs11_shared ${LIBCRYPTO_LDFLAGS} ykpiv_shared Threads::Threads)
set_target_properties(ykcs11_shared PROPERTIES SOVERSION ${SO_VERSION} VERSION ${VERSION})
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set_target_properties(ykcs11_shared PROPERTIES INSTALL_RPATH "${YKPIV_INSTALL_LIB_DIR}")