File: force-link-rt-pthread.patch

package info (click to toggle)
lambda-align 1.0.3-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 788 kB
  • sloc: cpp: 4,653; sh: 70; makefile: 27
file content (17 lines) | stat: -rw-r--r-- 770 bytes parent folder | download | duplicates (2)
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>
--- lambda-align.orig/src/CMakeLists.txt
+++ lambda-align/src/CMakeLists.txt
@@ -208,8 +208,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}")