summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2019-08-12 13:45:05 -0700
committerGreg Becker <becker33@llnl.gov>2019-08-12 13:45:05 -0700
commitbb6ec7fb40c14b37e094a860e3625af53f633174 (patch)
tree4a900c75e5d92552b02bb4453666240c9fc92331 /var
parent230678367c0380bf6a0067fc141c058e7c2f5921 (diff)
downloadspack-bb6ec7fb40c14b37e094a860e3625af53f633174.tar.gz
spack-bb6ec7fb40c14b37e094a860e3625af53f633174.tar.bz2
spack-bb6ec7fb40c14b37e094a860e3625af53f633174.tar.xz
spack-bb6ec7fb40c14b37e094a860e3625af53f633174.zip
Package/grass: fix iconv linking issue (#12165)
* fix iconv linking issue, package_grass fix linking iconv, add more comments
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/grass/package.py9
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