spack/var/spack/repos/builtin/packages/ncl/ymake.patch
Kevin Manalo fd4eed117d ESMF & NCL packages: Bug fixes for Intel Compilers (#11923)
* esmf: add patch when building with intel for 7.0.x
* esmf: set Makefile variables required to propagate CXX/F90 flags
* ncl: add ymake patch for @6.4.0:
* ncl: add pixman, bzip2, freetype dependencies
2019-08-23 17:16:09 -07:00

17 lines
531 B
Diff

diff --git a/config/ymake b/config/ymake
index 7b785bc..ca24dba 100755
--- a/config/ymake
+++ b/config/ymake
@@ -649,6 +649,11 @@ case UNICOS:
set cppopt = -N
breaksw
case Linux:
+ set cppopt = -traditional-cpp
+ # because local libraries and includes will otherwise have this prefix
+ # '1-rhel7-1' instead of 'linux-rhel7-x86_64'
+ set defines = "$defines -Dlinux=linux -Dx86_64=x86_64"
+ breaksw
case FreeBSD:
case CYGWIN:
set cppopt = -traditional-cpp