Package/grass: fix iconv linking issue (#12165)

* fix iconv linking issue, package_grass fix linking iconv, add more comments
This commit is contained in:
Sinan 2019-08-12 13:45:05 -07:00 committed by Greg Becker
parent 230678367c
commit bb6ec7fb40

View File

@ -195,3 +195,12 @@ def configure_args(self):
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