File: force-link-rt-pthread.patch

package info (click to toggle)
lambda-align2 2.0.1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 988 kB
  • sloc: cpp: 6,980; sh: 118; makefile: 42
file content (20 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
@@ -229,11 +229,11 @@
                     mkindex_saca.hpp)
 
 add_executable (lambda2 ${LAMBDA_SOURCE_FILES})
-target_link_libraries (lambda2 ${SEQAN_LIBRARIES})
+target_link_libraries (lambda2 ${SEQAN_LIBRARIES} rt pthread)
 
 if (LAMBDA_MULTIOPT_BUILD)
     add_executable (lambda2-sse4 ${LAMBDA_SOURCE_FILES})
-    target_link_libraries (lambda2-sse4 ${SEQAN_LIBRARIES})
+    target_link_libraries (lambda2-sse4 ${SEQAN_LIBRARIES} rt pthread)
     set_target_properties (lambda2-sse4 PROPERTIES COMPILE_FLAGS "-mmmx -msse -msse2 -msse3 -mssse3 -msse4 -mpopcnt")
 endif ()