Package: syrthes / 4.3.0-dfsg1-3

buildflags.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
44
45
46
Description: Replace hard coded build flags with standards variables
Author: Gilles Filippini <pini@debian.org>
Index: syrthes/src/syrthes-install/config_makeFileIN.py
===================================================================
--- syrthes.orig/src/syrthes-install/config_makeFileIN.py
+++ syrthes/src/syrthes-install/config_makeFileIN.py
@@ -143,7 +143,7 @@ PART_SCOTCH=no
             makefileinFile.write("DEBUG=yes\n")
             makefileinFile.write("COPTIM= "+self.dicospeci['specific_debug']['PATH']+"\n")
         else:
-            makefileinFile.write("COPTIM= -O3\n")
+            makefileinFile.write("COPTIM= \n")
 
         makefileinFile.write("# Sources and build directories\n")
         makefileinFile.write("DIR_SYRTHES=%s"%self.syrthesDir+"\n") 
@@ -154,8 +154,8 @@ PART_SCOTCH=no
 # Building options
 #-----------------
 
-CFLAG = -D _FILE_OFFSET_BITS=64
-LDFLAG= -D _FILE_OFFSET_BITS=64
+CFLAG = -D _FILE_OFFSET_BITS=64 $(CFLAGS)
+LDFLAG= -D _FILE_OFFSET_BITS=64 $(LDFLAGS)
 
 ifeq ($(MPI),yes)
 	CFLAG  += -D_SYRTHES_MPI_
@@ -411,7 +411,7 @@ PART_SCOTCH=no
             makefileinFile.write("DEBUG=yes\n")
             makefileinFile.write("COPTIM= "+self.dicospeci['specific_debug']['PATH']+"\n")
         else:
-            makefileinFile.write("COPTIM= -O3\n")
+            makefileinFile.write("COPTIM= \n")
 
         makefileinFile.write("# Sources and build directories\n")
         makefileinFile.write("BUILD_SYRTHES=%s"%self.syrthesDir+"/arch/"+self.arch+"\n")
@@ -421,8 +421,8 @@ PART_SCOTCH=no
 # Building options
 #-----------------
 
-CFLAG = -D _FILE_OFFSET_BITS=64
-LDFLAG= -D _FILE_OFFSET_BITS=64
+CFLAG = -D _FILE_OFFSET_BITS=64 $(CFLAGS)
+LDFLAG= -D _FILE_OFFSET_BITS=64 $(LDFLAGS)
 
 ifeq ($(MPI),yes)
 	CFLAG  += -D_SYRTHES_MPI_