File: force-link-rt-pthread.patch

package info (click to toggle)
lambda-align 1.0.3-7
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,072 kB
  • sloc: cpp: 4,654; sh: 71; makefile: 27
file content (25 lines) | stat: -rw-r--r-- 989 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Sascha Steinbiss <satta@debian.org>
Date: Sun, 9 Oct 2016 15:06:20 +0000
Subject: 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).
---
 src/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index da7ff38..9fc2e08 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -208,8 +208,8 @@ add_executable (lambda_indexer lambda_indexer.cpp
                 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}")