summaryrefslogtreecommitdiff
path: root/sci-libs/rosetta-fragments/files/rosetta-fragments-3.1-chemshift.patch
blob: cb8fd9197d1b09d405e04fb48d91bd62477aac3c (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 chemshift/make.system | 24 ++++++++++++------------
 chemshift/makefile    |  2 +-
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/chemshift/make.system b/chemshift/make.system
index 53bbd38..d105802 100644
--- a/chemshift/make.system
+++ b/chemshift/make.system
@@ -60,18 +60,18 @@ endif
 ########## once COMPILER is set, here are the options
 
 # defaults
-F77=f77
-FFLAGS=
-FOPTIMFLAGS=-O
-FDEBUGFLAGS=-g
+F77?=f77
+FFLAGS?=
+FOPTIMFLAGS?=
+FDEBUGFLAGS?=
 FPROFILEFLAGS=-P
 
 ifeq ($(COMPILER),gnu)
-	F77 = g77
-	FFLAGS = -finline-functions -funroll-loops -W  -ffixed-line-length-132 -Wimplicit
-	FOPTIMFLAGS = -O -ffast-math -malign-double
-	FDEBUGFLAGS = -g -Wall -Wimplicit -Wsurprising -Wformat -W
-	FPROFILEFLAGS = -pg
+	F77 ?= g77
+	FFLAGS += -W  -ffixed-line-length-132 -Wimplicit
+	FOPTIMFLAGS += -malign-double
+	FDEBUGFLAGS += -Wall -Wimplicit -Wsurprising -Wformat -W
+	FPROFILEFLAGS =
 endif
 
 ifeq ($(COMPILER),pgi) # on mary, good bounds checking
@@ -108,9 +108,9 @@ endif
 
 # Suse ppc gnu
 ifeq ($(COMPILER),ppc)
-	F77 = g77
-	FFLAGS = -Wall -finline-functions -funroll-loops -W -ffixed-line-length-132
-	FDEBUGFLAGS = -g -C -Mbounds
+	F77 ?= g77
+	FFLAGS += -Wall -W -ffixed-line-length-132
+	FDEBUGFLAGS += -C -Mbounds
 	FOPTIMFLAGS =
 endif
 
diff --git a/chemshift/makefile b/chemshift/makefile
index 712e98f..05d3b64 100644
--- a/chemshift/makefile
+++ b/chemshift/makefile
@@ -64,7 +64,7 @@ regular: compile
 # rule to compile executable
 compile: $(BASE_NAME).$(COMPILER)
 $(BASE_NAME).$(COMPILER) : print ${OBJS}
-	$(F77) $(FFLAGS) -o $@ $(OBJS) $(LINKFLAGS)
+	$(F77) $(FFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LINKFLAGS)
 
 # rule to compile object files:
 .$(COMPILER).%.o: %.f