summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTimothy Brown <t-brown@users.noreply.github.com>2022-03-13 09:43:39 -0600
committerGitHub <noreply@github.com>2022-03-13 11:43:39 -0400
commit717ac6ca0a697dfda89318918b555c6d1b813e48 (patch)
treecc1f84cd369611861a39dc8a98b6ce0e11b85fe0 /var
parent2c11d5f2a8185f74161d4d8cc5da945a3883ee25 (diff)
downloadspack-717ac6ca0a697dfda89318918b555c6d1b813e48.tar.gz
spack-717ac6ca0a697dfda89318918b555c6d1b813e48.tar.bz2
spack-717ac6ca0a697dfda89318918b555c6d1b813e48.tar.xz
spack-717ac6ca0a697dfda89318918b555c6d1b813e48.zip
wps: new version 4.3 (#29473)
* Adding new version [WPS]. * Making `spack style` happy.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/wps/package.py10
-rw-r--r--var/spack/repos/builtin/packages/wps/patches/4.3.1/arch.configure.defaults.patch354
-rw-r--r--var/spack/repos/builtin/packages/wps/patches/4.3/arch.configure.defaults.patch354
3 files changed, 715 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/wps/package.py b/var/spack/repos/builtin/packages/wps/package.py
index c703327c48..71fbc8170b 100644
--- a/var/spack/repos/builtin/packages/wps/package.py
+++ b/var/spack/repos/builtin/packages/wps/package.py
@@ -17,6 +17,8 @@ class Wps(Package):
url = "https://github.com/wrf-model/WPS/archive/v4.2.tar.gz"
maintainers = ['MichaelLaufer']
+ version('4.3.1', sha256='db6da44a2ca68cc289e98ab388a53c27283eb4ed8e92edee268466543fdedb0e')
+ version('4.3', sha256='1913cb24de549f029d65635feea27f3304a8f42ec025954a0887651fc89d1e9e')
version('4.2', sha256='3e175d033355d3e7638be75bc7c0bc0de6da299ebd175a9bbc1b7a121acd0168')
# Serial variant recommended in WRF/WPS docs
@@ -24,10 +26,12 @@ class Wps(Package):
values=('serial', 'serial_NO_GRIB2', 'dmpar', 'dmpar_NO_GRIB2'))
# These patches deal with netcdf & netcdf-fortran being two diff things
- patch('patches/4.2/arch.Config.pl.patch', when='@4.2')
+ patch('patches/4.2/arch.Config.pl.patch', when='@4.2:')
patch('patches/4.2/arch.configure.defaults.patch', when='@4.2')
- patch('patches/4.2/configure.patch', when='@4.2')
- patch('patches/4.2/preamble.patch', when='@4.2')
+ patch('patches/4.2/configure.patch', when='@4.2:')
+ patch('patches/4.2/preamble.patch', when='@4.2:')
+ patch('patches/4.3/arch.configure.defaults.patch', when='@4.3:4.3.0')
+ patch('patches/4.3.1/arch.configure.defaults.patch', when='@4.3.1')
# According to:
# http://www2.mmm.ucar.edu/wrf/users/docs/user_guide_v4/v4.0/users_guide_chap2.html#_Required_Compilers_and_1
diff --git a/var/spack/repos/builtin/packages/wps/patches/4.3.1/arch.configure.defaults.patch b/var/spack/repos/builtin/packages/wps/patches/4.3.1/arch.configure.defaults.patch
new file mode 100644
index 0000000000..4bb4acbb47
--- /dev/null
+++ b/var/spack/repos/builtin/packages/wps/patches/4.3.1/arch.configure.defaults.patch
@@ -0,0 +1,354 @@
+--- a/arch/configure.defaults 2022-03-11 20:25:56.745017753 +0000
++++ b/arch/configure.defaults 2022-03-11 20:24:12.548778719 +0000
+@@ -11,8 +11,8 @@
+ CC = mpicc
+ SCC = xlc_r
+ LD = $(FC)
+-FFLAGS = -qfree=f90 -qufmt=be
+-F77FLAGS = -qfixed -qufmt=be
++FFLAGS = $(FCFLAGS) -qfree=f90 -qufmt=be
++F77FLAGS = $(FCFLAGS) -qfixed -qufmt=be
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+ CFLAGS =
+@@ -32,8 +32,8 @@
+ CC = mpicc
+ SCC = pgcc
+ LD = $(FC)
+-FFLAGS = -Mfree -byteswapio
+-F77FLAGS = -Mfixed -byteswapio
++FFLAGS = $(FCFLAGS) -Mfree -byteswapio
++F77FLAGS = $(FCFLAGS) -Mfixed -byteswapio
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+ CFLAGS =
+@@ -56,8 +56,8 @@
+ SFC = blrts_xlf90
+ CC = blrts_xlc
+ LD = $(FC)
+-FFLAGS = -qfree=f90 $(MPI_INC)
+-F77FLAGS = -qfixed $(MPI_INC)
++FFLAGS = $(FCFLAGS) -qfree=f90 $(MPI_INC)
++F77FLAGS = $(FCFLAGS) -qfixed $(MPI_INC)
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+ SCC = cc
+@@ -85,8 +85,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -Mfree -byteswapio -O
+-F77FLAGS = -Mfixed -byteswapio -O
++FFLAGS = $(FCFLAGS) -Mfree -byteswapio -O
++F77FLAGS = $(FCFLAGS) -Mfixed -byteswapio -O
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -109,8 +109,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -133,8 +133,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -O -fendian=big
+-F77FLAGS = -ffixed-form -O -fendian=big
++FFLAGS = $(FCFLAGS) -ffree-form -O -fendian=big
++F77FLAGS = $(FCFLAGS) -ffixed-form -O -fendian=big
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -157,8 +157,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4
+-F77FLAGS = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
++FFLAGS = $(FCFLAGS) -ffree-form -O -fconvert=big-endian -frecord-marker=4
++F77FLAGS = $(FCFLAGS) -ffixed-form -O -fconvert=big-endian -frecord-marker=4
+ FCCOMPAT = CONFIGURE_COMPAT_FLAGS
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+@@ -181,8 +181,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4
+-F77FLAGS = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
++FFLAGS = $(FCFLAGS) -ffree-form -O -fconvert=big-endian -frecord-marker=4
++F77FLAGS = $(FCFLAGS) -ffixed-form -O -fconvert=big-endian -frecord-marker=4
+ FCCOMPAT = CONFIGURE_COMPAT_FLAGS
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+@@ -207,8 +207,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -Mfree -byteswapio -O
+-F77FLAGS = -Mfixed -byteswapio -O
++FFLAGS = $(FCFLAGS) -Mfree -byteswapio -O
++F77FLAGS = $(FCFLAGS) -Mfixed -byteswapio -O
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -233,8 +233,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -Mfree -byteswapio -O
+-F77FLAGS = -Mfixed -byteswapio -O
++FFLAGS = $(FCFLAGS) -Mfree -byteswapio -O
++F77FLAGS = $(FCFLAGS) -Mfixed -byteswapio -O
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -L$(MPI_ROOT)/lib -lmpi
+@@ -257,8 +257,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -freeform -fno-second-underscore -byteswapio -O
+-F77FLAGS = -byteswapio -fno-second-underscore -O
++FFLAGS = $(FCFLAGS) -freeform -fno-second-underscore -byteswapio -O
++F77FLAGS = $(FCFLAGS) -byteswapio -fno-second-underscore -O
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -281,8 +281,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -305,8 +305,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -L$(MPI_ROOT)/lib -lmpi
+@@ -329,8 +329,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -353,8 +353,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -Mfree -byteswapio -O2
+-F77FLAGS = -Mfixed -byteswapio -O2
++FFLAGS = $(FCFLAGS) -Mfree -byteswapio -O2
++F77FLAGS = $(FCFLAGS) -Mfixed -byteswapio -O2
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -g
+@@ -378,8 +378,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -Mfree -byteswapio -O2
+-F77FLAGS = -Mfixed -byteswapio -O2
++FFLAGS = $(FCFLAGS) -Mfree -byteswapio -O2
++F77FLAGS = $(FCFLAGS) -Mfixed -byteswapio -O2
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -g
+@@ -403,8 +403,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -427,8 +427,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -g -fendian=big
+-F77FLAGS = -ffixed-form -g -fendian=big
++FFLAGS = $(FCFLAGS) -ffree-form -g -fendian=big
++F77FLAGS = $(FCFLAGS) -ffixed-form -g -fendian=big
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -g
+@@ -452,8 +452,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4
+-F77FLAGS = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
++FFLAGS = $(FCFLAGS) -ffree-form -O -fconvert=big-endian -frecord-marker=4
++F77FLAGS = $(FCFLAGS) -ffixed-form -O -fconvert=big-endian -frecord-marker=4
+ FCCOMPAT = CONFIGURE_COMPAT_FLAGS
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+@@ -478,8 +478,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4
+-F77FLAGS = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
++FFLAGS = $(FCFLAGS) -ffree-form -O -fconvert=big-endian -frecord-marker=4
++F77FLAGS = $(FCFLAGS) -ffixed-form -O -fconvert=big-endian -frecord-marker=4
+ FCCOMPAT = CONFIGURE_COMPAT_FLAGS
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+@@ -509,8 +509,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -qfree
+-F77FLAGS = -qfixed
++FFLAGS = $(FCFLAGS) -qfree
++F77FLAGS = $(FCFLAGS) -qfixed
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS) -qextname
+ LDFLAGS = -Wl,-stack_size,10000000,-stack_addr,0xc000000
+@@ -535,8 +535,8 @@
+ SCC = gcc-3.3
+ DM_FC = mpif90 -f90=$(SFC)
+ DM_CC = mpicc -cc=$(SCC)
+-FFLAGS = -qfree
+-F77FLAGS = -qfixed
++FFLAGS = $(FCFLAGS) -qfree
++F77FLAGS = $(FCFLAGS) -qfixed
+ FNGFLAGS = $(FFLAGS) -qextname
+ LDFLAGS = -Wl,-stack_size,10000000,-stack_addr,0xc0000000 -L/usr/lib -lSystemStubs
+ FC = CONFIGURE_FC
+@@ -559,8 +559,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -g -fno-second-underscore
+-F77FLAGS = -ffixed-form -g -fno-second-underscore
++FFLAGS = $(FCFLAGS) -ffree-form -g -fno-second-underscore
++F77FLAGS = $(FCFLAGS) -ffixed-form -g -fno-second-underscore
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -g
+@@ -588,8 +588,8 @@
+ CC = CONFIGURE_CC
+ LD = $(FC)
+ AR = ar
+-FFLAGS = -qfree=f90
+-F77FLAGS = -qfixed
++FFLAGS = $(FCFLAGS) -qfree=f90
++F77FLAGS = $(FCFLAGS) -qfixed
+ FCSUFFIX = -qsuffix=f=f90
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -611,8 +611,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_FC
+ LD = $(FC)
+-FFLAGS = -free -convert big_endian
+-F77FLAGS = -convert big_endian
++FFLAGS = $(FCFLAGS) -free -convert big_endian
++F77FLAGS = $(FCFLAGS) -convert big_endian
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+ CFLAGS =
+@@ -633,8 +633,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -g -fno-second-underscore
+-F77FLAGS = -ffixed-form -g -fno-second-underscore
++FFLAGS = $(FCFLAGS) -ffree-form -g -fno-second-underscore
++F77FLAGS = $(FCFLAGS) -ffixed-form -g -fno-second-underscore
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -g
+@@ -663,8 +663,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -Mfree -g
+-F77FLAGS = -Mfixed -g
++FFLAGS = $(FCFLAGS) -Mfree -g
++F77FLAGS = $(FCFLAGS) -Mfixed -g
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -g
+@@ -686,8 +686,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -freeform -64
+-F77FLAGS = -64
++FFLAGS = $(FCFLAGS) -freeform -64
++F77FLAGS = $(FCFLAGS) -64
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -64
+@@ -716,8 +716,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS =
+ LDFLAGS =
+@@ -740,8 +740,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -free
+-F77FLAGS =
++FFLAGS = $(FCFLAGS) -free
++F77FLAGS = $(FCFLAGS)
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -763,8 +763,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -N255 -f free -h byteswapio
+-F77FLAGS = -N255 -f fixed -h byteswapio
++FFLAGS = $(FCFLAGS) -N255 -f free -h byteswapio
++F77FLAGS = $(FCFLAGS) -N255 -f fixed -h byteswapio
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -787,8 +787,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
diff --git a/var/spack/repos/builtin/packages/wps/patches/4.3/arch.configure.defaults.patch b/var/spack/repos/builtin/packages/wps/patches/4.3/arch.configure.defaults.patch
new file mode 100644
index 0000000000..d3fc8be065
--- /dev/null
+++ b/var/spack/repos/builtin/packages/wps/patches/4.3/arch.configure.defaults.patch
@@ -0,0 +1,354 @@
+--- a/arch/configure.defaults 2022-03-11 19:50:15.022465976 +0000
++++ b/arch/configure.defaults 2022-03-11 19:54:23.353498695 +0000
+@@ -11,8 +11,8 @@
+ CC = mpicc
+ SCC = xlc_r
+ LD = $(FC)
+-FFLAGS = -qfree=f90 -qufmt=be
+-F77FLAGS = -qfixed -qufmt=be
++FFLAGS = $(FCFLAGS) -qfree=f90 -qufmt=be
++F77FLAGS = $(FCFLAGS) -qfixed -qufmt=be
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+ CFLAGS =
+@@ -32,8 +32,8 @@
+ CC = mpicc
+ SCC = pgcc
+ LD = $(FC)
+-FFLAGS = -Mfree -byteswapio
+-F77FLAGS = -Mfixed -byteswapio
++FFLAGS = $(FCFLAGS) -Mfree -byteswapio
++F77FLAGS = $(FCFLAGS) -Mfixed -byteswapio
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+ CFLAGS =
+@@ -56,8 +56,8 @@
+ SFC = blrts_xlf90
+ CC = blrts_xlc
+ LD = $(FC)
+-FFLAGS = -qfree=f90 $(MPI_INC)
+-F77FLAGS = -qfixed $(MPI_INC)
++FFLAGS = $(FCFLAGS) -qfree=f90 $(MPI_INC)
++F77FLAGS = $(FCFLAGS) -qfixed $(MPI_INC)
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+ SCC = cc
+@@ -85,8 +85,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -Mfree -byteswapio -O
+-F77FLAGS = -Mfixed -byteswapio -O
++FFLAGS = $(FCFLAGS) -Mfree -byteswapio -O
++F77FLAGS = $(FCFLAGS) -Mfixed -byteswapio -O
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -109,8 +109,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -133,8 +133,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -O -fendian=big
+-F77FLAGS = -ffixed-form -O -fendian=big
++FFLAGS = $(FCFLAGS) -ffree-form -O -fendian=big
++F77FLAGS = $(FCFLAGS) -ffixed-form -O -fendian=big
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -157,8 +157,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4
+-F77FLAGS = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
++FFLAGS = $(FCFLAGS) -ffree-form -O -fconvert=big-endian -frecord-marker=4
++F77FLAGS = $(FCFLAGS) -ffixed-form -O -fconvert=big-endian -frecord-marker=4
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -180,8 +180,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4
+-F77FLAGS = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
++FFLAGS = $(FCFLAGS) -ffree-form -O -fconvert=big-endian -frecord-marker=4
++F77FLAGS = $(FCFLAGS) -ffixed-form -O -fconvert=big-endian -frecord-marker=4
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -205,8 +205,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -Mfree -byteswapio -O
+-F77FLAGS = -Mfixed -byteswapio -O
++FFLAGS = $(FCFLAGS) -Mfree -byteswapio -O
++F77FLAGS = $(FCFLAGS) -Mfixed -byteswapio -O
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -231,8 +231,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -Mfree -byteswapio -O
+-F77FLAGS = -Mfixed -byteswapio -O
++FFLAGS = $(FCFLAGS) -Mfree -byteswapio -O
++F77FLAGS = $(FCFLAGS) -Mfixed -byteswapio -O
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -L$(MPI_ROOT)/lib -lmpi
+@@ -255,8 +255,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -freeform -fno-second-underscore -byteswapio -O
+-F77FLAGS = -byteswapio -fno-second-underscore -O
++FFLAGS = $(FCFLAGS) -freeform -fno-second-underscore -byteswapio -O
++F77FLAGS = $(FCFLAGS) -byteswapio -fno-second-underscore -O
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -279,8 +279,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -303,8 +303,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -L$(MPI_ROOT)/lib -lmpi
+@@ -327,8 +327,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -351,8 +351,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -Mfree -byteswapio -O2
+-F77FLAGS = -Mfixed -byteswapio -O2
++FFLAGS = $(FCFLAGS) -Mfree -byteswapio -O2
++F77FLAGS = $(FCFLAGS) -Mfixed -byteswapio -O2
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -g
+@@ -376,8 +376,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -Mfree -byteswapio -O2
+-F77FLAGS = -Mfixed -byteswapio -O2
++FFLAGS = $(FCFLAGS) -Mfree -byteswapio -O2
++F77FLAGS = $(FCFLAGS) -Mfixed -byteswapio -O2
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -g
+@@ -401,8 +401,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -425,8 +425,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -g -fendian=big
+-F77FLAGS = -ffixed-form -g -fendian=big
++FFLAGS = $(FCFLAGS) -ffree-form -g -fendian=big
++F77FLAGS = $(FCFLAGS) -ffixed-form -g -fendian=big
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -g
+@@ -450,8 +450,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4
+-F77FLAGS = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
++FFLAGS = $(FCFLAGS) -ffree-form -O -fconvert=big-endian -frecord-marker=4
++F77FLAGS = $(FCFLAGS) -ffixed-form -O -fconvert=big-endian -frecord-marker=4
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -475,8 +475,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4
+-F77FLAGS = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
++FFLAGS = $(FCFLAGS) -ffree-form -O -fconvert=big-endian -frecord-marker=4
++F77FLAGS = $(FCFLAGS) -ffixed-form -O -fconvert=big-endian -frecord-marker=4
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ # For a WRF OpenMP build, add the gomp library for WPS
+@@ -505,8 +505,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -qfree
+-F77FLAGS = -qfixed
++FFLAGS = $(FCFLAGS) -qfree
++F77FLAGS = $(FCFLAGS) -qfixed
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS) -qextname
+ LDFLAGS = -Wl,-stack_size,10000000,-stack_addr,0xc000000
+@@ -531,8 +531,8 @@
+ SCC = gcc-3.3
+ DM_FC = mpif90 -f90=$(SFC)
+ DM_CC = mpicc -cc=$(SCC)
+-FFLAGS = -qfree
+-F77FLAGS = -qfixed
++FFLAGS = $(FCFLAGS) -qfree
++F77FLAGS = $(FCFLAGS) -qfixed
+ FNGFLAGS = $(FFLAGS) -qextname
+ LDFLAGS = -Wl,-stack_size,10000000,-stack_addr,0xc0000000 -L/usr/lib -lSystemStubs
+ FC = CONFIGURE_FC
+@@ -555,8 +555,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -g -fno-second-underscore
+-F77FLAGS = -ffixed-form -g -fno-second-underscore
++FFLAGS = $(FCFLAGS) -ffree-form -g -fno-second-underscore
++F77FLAGS = $(FCFLAGS) -ffixed-form -g -fno-second-underscore
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -g
+@@ -584,8 +584,8 @@
+ CC = CONFIGURE_CC
+ LD = $(FC)
+ AR = ar
+-FFLAGS = -qfree=f90
+-F77FLAGS = -qfixed
++FFLAGS = $(FCFLAGS) -qfree=f90
++F77FLAGS = $(FCFLAGS) -qfixed
+ FCSUFFIX = -qsuffix=f=f90
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -607,8 +607,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_FC
+ LD = $(FC)
+-FFLAGS = -free -convert big_endian
+-F77FLAGS = -convert big_endian
++FFLAGS = $(FCFLAGS) -free -convert big_endian
++F77FLAGS = $(FCFLAGS) -convert big_endian
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+ CFLAGS =
+@@ -629,8 +629,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -ffree-form -g -fno-second-underscore
+-F77FLAGS = -ffixed-form -g -fno-second-underscore
++FFLAGS = $(FCFLAGS) -ffree-form -g -fno-second-underscore
++F77FLAGS = $(FCFLAGS) -ffixed-form -g -fno-second-underscore
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -g
+@@ -659,8 +659,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -Mfree -g
+-F77FLAGS = -Mfixed -g
++FFLAGS = $(FCFLAGS) -Mfree -g
++F77FLAGS = $(FCFLAGS) -Mfixed -g
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -g
+@@ -682,8 +682,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -freeform -64
+-F77FLAGS = -64
++FFLAGS = $(FCFLAGS) -freeform -64
++F77FLAGS = $(FCFLAGS) -64
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS = -64
+@@ -712,8 +712,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS =
+ LDFLAGS =
+@@ -736,8 +736,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -free
+-F77FLAGS =
++FFLAGS = $(FCFLAGS) -free
++F77FLAGS = $(FCFLAGS)
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -759,8 +759,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -N255 -f free -h byteswapio
+-F77FLAGS = -N255 -f fixed -h byteswapio
++FFLAGS = $(FCFLAGS) -N255 -f free -h byteswapio
++F77FLAGS = $(FCFLAGS) -N255 -f fixed -h byteswapio
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =
+@@ -783,8 +783,8 @@
+ FC = CONFIGURE_FC
+ CC = CONFIGURE_CC
+ LD = $(FC)
+-FFLAGS = -FR -convert big_endian
+-F77FLAGS = -FI -convert big_endian
++FFLAGS = $(FCFLAGS) -FR -convert big_endian
++F77FLAGS = $(FCFLAGS) -FI -convert big_endian
+ FCSUFFIX =
+ FNGFLAGS = $(FFLAGS)
+ LDFLAGS =