Package/grass: fix iconv linking issue (#12165)
* fix iconv linking issue, package_grass fix linking iconv, add more comments
This commit is contained in:
parent
230678367c
commit
bb6ec7fb40
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user