Package: dnaclust / 3-7

do_not_staically_linking.patch Patch series | 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
26
27
28
29
30
31
32
33
34
35
Author: Andreas Tille <tille@debian.org>
Last-Update: Sat, 01 Feb 2014 17:10:29 +0100
Description: Prevent static linking and propagate hardening options

--- a/Makefile
+++ b/Makefile
@@ -1,24 +1,24 @@
 #PROFILE_FLAGS = -pg -fprofile-arcs -ftest-coverage -g -O1
-CXXFLAGS = -Wall -pedantic -std=c++98 -O2 -static
+CXXFLAGS += -Wall -pedantic -std=c++98 -O2
 CXX = g++ 
 #-DCHRIS_DEBUG
 
 all: dnaclust fastaselect fastasort
 
 dnaclust: dnaclust.o fasta.o
-	$(CXX) $(CXXFLAGS) $(PROFILE_FLAGS) dnaclust.o fasta.o -lboost_program_options -o $@ -lpthread
+	$(CXX) $(CXXFLAGS) $(PROFILE_FLAGS) $(LDFLAGS) dnaclust.o fasta.o -lboost_program_options -o $@ -lpthread
 
 dnaclust.o: dnaclust.cpp search_include.cpp utility.hpp ternary_sort.hpp multi_dim.hpp
 	$(CXX) -c $(CXXFLAGS) $(PROFILE_FLAGS) dnaclust.cpp
 
 fastaselect: fastaselect.o fasta.o
-	$(CXX) $(CXXFLAGS) $(PROFILE_FLAGS) fastaselect.o fasta.o -lboost_program_options -o $@
+	$(CXX) $(CXXFLAGS) $(PROFILE_FLAGS) $(LDFLAGS) fastaselect.o fasta.o -lboost_program_options -o $@
 
 fastaselect.o: fastaselect.cpp
 	$(CXX) -c $(CXXFLAGS) $(PROFILE_FLAGS) fastaselect.cpp
 
 fastasort: fastasort.o fasta.o
-	$(CXX) $(CXXFLAGS) $(PROFILE_FLAGS) $+ -lboost_program_options -o $@
+	$(CXX) $(CXXFLAGS) $(PROFILE_FLAGS) $(LDFLAGS) $+ -lboost_program_options -o $@
 
 fastasort.o: fastasort.cpp
 	$(CXX) -c $(CXXFLAGS) $(PROFILE_FLAGS) $+ -o $@