File: force-link-rt-pthread.patch

package info (click to toggle)
lambda-align 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 752 kB
  • ctags: 323
  • sloc: cpp: 4,644; sh: 63; makefile: 20
file content (17 lines) | stat: -rw-r--r-- 743 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: enforce linking of -lrt -lpthread
 This patch makes sure that these get linked even though they might
 be missing in $SEQAN_LIBRARIES (until this is fixed in libseqan2-dev).
Author: Sascha Steinbiss <satta@debian.org>
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -207,8 +207,8 @@
                 radix_inplace.h)
 
 # Add dependencies found by find_package (SeqAn).
-target_link_libraries (lambda ${SEQAN_LIBRARIES})
-target_link_libraries (lambda_indexer ${SEQAN_LIBRARIES})
+target_link_libraries (lambda ${SEQAN_LIBRARIES} rt pthread)
+target_link_libraries (lambda_indexer ${SEQAN_LIBRARIES} rt pthread)
 
 # Add CXX flags found by find_package (SeqAn).
 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SEQAN_CXX_FLAGS}")