Package: mothur / 1.33.3+dfsg-2

makefile.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
36
37
38
39
40
41
42
43
Author: Steffen Moeller <moeller@debian.org>, Tim Booth <tbooth@ceh.ac.uk>
Purpose: Comment MAC specific option
  Don't bother with any compilation flags, as the defaults are already sane
  on all architectures (and trying to set -m64 explicitly fails on ia64).
--- a/makefile
+++ b/makefile
@@ -20,14 +20,15 @@ FORTAN_COMPILER = gfortran
 FORTRAN_FLAGS = 
 
 # Optimize to level 3:
-CXXFLAGS += -O3 
+# Nope - let debuild set this
+#CXXFLAGS += -O3
 
 ifeq  ($(strip $(64BIT_VERSION)),yes)
 	#if you are using centos uncomment the following lines
 	#CXX = g++44
 	
 	#if you are a mac user use the following line
-	TARGET_ARCH += -arch x86_64
+	#TARGET_ARCH += -arch x86_64
 	
 	#if you using cygwin to build Windows the following line
 	#CXX = x86_64-w64-mingw32-g++
@@ -37,9 +38,12 @@ ifeq  ($(strip $(64BIT_VERSION)),yes)
 
 	#if you are a linux user use the following line
 	#CXXFLAGS += -mtune=native -march=native 
+	# But not if you are trying to make a generic build for
+	# packaging, because your binary will end up being specific
+	# to your own processor.
 	
 	CXXFLAGS += -DBIT_VERSION 
-	FORTRAN_FLAGS = -m64
+	# FORTRAN_FLAGS = -m64
 endif
 
 
@@ -115,4 +119,3 @@ install : mothur
 clean :
 	@rm -f $(OBJECTS)
 	@rm -f uchime
-