Skip to content

Commit

Permalink
wgrib2: fix build error due to missing grib2.h
Browse files Browse the repository at this point in the history
  • Loading branch information
tenomoto committed Apr 8, 2018
1 parent 724b5f0 commit f1dcb78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions science/wgrib2/files/patch-makefile.diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- makefile.orig 2017-12-30 00:14:43.000000000 +0900
+++ makefile 2018-03-10 17:19:24.000000000 +0900
+++ makefile 2018-04-08 13:16:45.000000000 +0900
@@ -107,21 +107,21 @@


Expand Down Expand Up @@ -48,7 +48,7 @@
-${prog}: $w/*.c $w/*.h ${jlib} ${aeclib} ${netcdf3lib} ${pnglib} ${hdf5lib} ${g2clib} ${netcdf4lib} ${iplib} ${gctpclib} ${proj4lib}
- cd "$w" && export LDFLAGS="${wLDFLAGS}" && export CPPFLAGS="${wCPPFLAGS}" && ${MAKE}
+${prog}: $w/*.c $w/*.h ${g2clib} ${iplib}
+ cd "$w" && ${MAKE} LDFLAGS="${LDFLAGS} ${wLDFLAGS}"
+ cd "$w" && ${MAKE} LDFLAGS="${LDFLAGS} ${wLDFLAGS}" CPPFLAGS="-I${g2cdir} ${CPPFLAGS}"

fast: $w/*.c $w/*.h ${jlib} ${aeclib} ${netcdf3lib} ${pnglib} ${hdf5lib} ${g2clib} ${netcdf4lib} ${iplib} ${gctpclib} ${proj4lib}
cd "$w" && export LDFLAGS="${wLDFLAGS}" && export CPPFLAGS="${wCPPFLAGS}" && ${MAKE} fast
Expand Down

0 comments on commit f1dcb78

Please sign in to comment.