diff options
-rw-r--r-- | var/spack/repos/builtin/packages/grass/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/grass/package.py b/var/spack/repos/builtin/packages/grass/package.py index 184c1eba88..1c42d45069 100644 --- a/var/spack/repos/builtin/packages/grass/package.py +++ b/var/spack/repos/builtin/packages/grass/package.py @@ -195,3 +195,12 @@ class Grass(AutotoolsPackage): args.append('--without-geos') return args + + # see issue: https://github.com/spack/spack/issues/11325 + # 'Platform.make' is created after configure step + # hence invoke the following function afterwards + @run_after('configure') + def fix_iconv_linking(self): + makefile = FileFilter('include/Make/Platform.make') + makefile.filter(r'^ICONVLIB\s*=\s*', 'ICONVLIB = -liconv') + return None |