File: eccodes.patch

package info (click to toggle)
flexpart 9.02-27
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,944 kB
  • sloc: f90: 14,310; makefile: 29; sh: 18
file content (31 lines) | stat: -rw-r--r-- 1,362 bytes parent folder | download | duplicates (6)
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
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Link against eccodes not grib_api (eccodes replacing grib_api at ECMWF)
Last-Updated: 2016-12-07
Forwarded: no

Index: flexpart-9.02/makefile.gfs_gfortran
===================================================================
--- flexpart-9.02.orig/makefile.gfs_gfortran
+++ flexpart-9.02/makefile.gfs_gfortran
@@ -8,7 +8,7 @@ INCPATH  = /usr/include
 LIBPATH1 = /usr/lib
 LIBPATH2 = 
 FFLAGS   = -O2 $(FCFLAGS) -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
-LFLAGS:= $(LDFLAGS) $(FFLAGS) -L$(LIBPATH1) -Wl,--as-needed  -lgrib_api_f90 -lgrib_api -lm
+LFLAGS:= $(LDFLAGS) $(FFLAGS) -L$(LIBPATH1) -Wl,--as-needed  -leccodes_f90 -leccodes -lm
 #
 
 MODOBJS = \
Index: flexpart-9.02/makefile.ecmwf_gfortran
===================================================================
--- flexpart-9.02.orig/makefile.ecmwf_gfortran
+++ flexpart-9.02/makefile.ecmwf_gfortran
@@ -7,7 +7,7 @@ INCPATH  = /usr/include
 LIBPATH1 = /usr/lib
 LIBPATH2 = 
 FFLAGS   = $(FCFLAGS) -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
-LFLAGS  = $(LDFLAGS) $(FFLAGS) -Wl,--as-needed -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm
+LFLAGS  = $(LDFLAGS) $(FFLAGS) -Wl,--as-needed -L$(LIBPATH2) -L$(LIBPATH1) -leccodes_f90 -leccodes -lm
 MODPATH = /usr/include
 #