summarylogtreecommitdiffstats
path: root/fix-build.patch
blob: 90069532da3381d5ec3a3a606a3b07bffe6531c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/Rhisat2/src/Makefile b/Rhisat2/src/Makefile
index 005d756..87ef966 100644
--- a/Rhisat2/src/Makefile
+++ b/Rhisat2/src/Makefile
@@ -217,7 +217,7 @@ endif
 
 DEBUG_FLAGS    = -O0 -g3 $(BITS_FLAG) $(SSE_FLAG)
 DEBUG_DEFS     = -DCOMPILER_OPTIONS="\"$(DEBUG_FLAGS) $(EXTRA_FLAGS)\""
-RELEASE_FLAGS  = -O3 $(BITS_FLAG) $(SSE_FLAG) -funroll-loops -g3
+RELEASE_FLAGS  = $(CXXFLAGS) $(LDFLAGS) $(BITS_FLAG) -funroll-loops -g3
 RELEASE_DEFS   = -DCOMPILER_OPTIONS="\"$(RELEASE_FLAGS) $(EXTRA_FLAGS)\""
 NOASSERT_FLAGS = -DNDEBUG
 FILE_FLAGS     = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
@@ -298,7 +298,7 @@ BIN_PKG_LIST = $(GENERAL_LIST)
 .PHONY: all allall both both-debug
 
 all: $(HISAT2_BIN_LIST) ../inst/hisat2
-	$(CXX) -shared -fPIC -o Rhisat2.so get_info.cpp
+	$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -fPIC -o Rhisat2.so get_info.cpp
 
 allall: $(HISAT2_BIN_LIST) $(HISAT2_BIN_LIST_AUX)