libiconv,lmod: improvements for static builds (#29493)

* libiconv: compile with pic even when static build

* lmod: require shared lua

It seems to be unable to detect lua-posix when using a static lua:
```
Error: The follow lua module(s) are missing:  posix
```
This commit is contained in:
Seth R. Johnson 2022-03-16 17:31:33 -04:00 committed by GitHub
parent 73287df7c5
commit 4ef534b19b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -31,6 +31,7 @@ def configure_args(self):
args = ['--enable-extra-encodings'] args = ['--enable-extra-encodings']
args += self.enable_or_disable('libs') args += self.enable_or_disable('libs')
args.append('--with-pic')
# A hack to patch config.guess in the libcharset sub directory # A hack to patch config.guess in the libcharset sub directory
copy('./build-aux/config.guess', copy('./build-aux/config.guess',

View file

@ -45,7 +45,7 @@ class Lmod(AutotoolsPackage):
version('6.4.1', sha256='a260b4e42269a80b517c066ba8484658362ea095e80767a2376bbe33d9b070a5') version('6.4.1', sha256='a260b4e42269a80b517c066ba8484658362ea095e80767a2376bbe33d9b070a5')
version('6.3.7', sha256='55ddb52cbdc0e2e389b3405229336df9aabfa582c874f5df2559ea264e2ee4ae') version('6.3.7', sha256='55ddb52cbdc0e2e389b3405229336df9aabfa582c874f5df2559ea264e2ee4ae')
depends_on('lua@5.1:') depends_on('lua+shared@5.1:')
depends_on('lua-luaposix', type=('build', 'run')) depends_on('lua-luaposix', type=('build', 'run'))
depends_on('lua-luafilesystem', type=('build', 'run')) depends_on('lua-luafilesystem', type=('build', 'run'))
depends_on('tcl', type=('build', 'link', 'run')) depends_on('tcl', type=('build', 'link', 'run'))