| 1 |
From: Ole Streicher <[email protected]> |
| 2 |
Date: Wed, 2 Oct 2019 11:41:08 +0200 |
| 3 |
Subject: Use FFLAGS provided by the system |
| 4 |
|
| 5 |
--- |
| 6 |
build/Makefile | 4 ++-- |
| 7 |
1 file changed, 2 insertions(+), 2 deletions(-) |
| 8 |
|
| 9 |
diff --git a/build/Makefile b/build/Makefile |
| 10 |
index cbb076a..b8c928a 100644 |
| 11 |
--- a/build/Makefile |
| 12 |
+++ b/build/Makefile |
| 13 |
@@ -31,7 +31,7 @@ endif |
| 14 |
# some default settings for unix systems |
| 15 |
# |
| 16 |
FC= |
| 17 |
-FFLAGS= |
| 18 |
+#FFLAGS= |
| 19 |
# |
| 20 |
# change the line below if SPLASH does not find the X11 libraries |
| 21 |
# (some settings of the SYSTEM variable for specific machines overwrite this) |
| 22 |
@@ -163,7 +163,7 @@ ifeq ($(SYSTEM), gfortran) |
| 23 |
# gfortran compiler (part of gcc 4.x.x) |
| 24 |
CC = gcc |
| 25 |
FC= gfortran |
| 26 |
- FFLAGS= -fPIC |
| 27 |
+ FFLAGS+= -fPIC $(CPPFLAGS) |
| 28 |
DBLFLAGS= -fdefault-real-8 -fdefault-double-8 |
| 29 |
SYSTEMFILE= system_f2003.f90 |
| 30 |
DEBUGFLAG= -Wall -Wextra -pedantic -g -frange-check -fcheck=all -fbacktrace \ |