diff options
author | Sinan <sbulutw@gmail.com> | 2022-05-03 00:24:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 09:24:59 +0200 |
commit | 14e5497758404679ff9fa29af590d7f0546bf1f0 (patch) | |
tree | 6503073e95c29a28706048a0f0d3e3155a9b57f3 | |
parent | 4576fbe6486c4fdc5162a5929e97803d0bc572f8 (diff) | |
download | spack-14e5497758404679ff9fa29af590d7f0546bf1f0.tar.gz spack-14e5497758404679ff9fa29af590d7f0546bf1f0.tar.bz2 spack-14e5497758404679ff9fa29af590d7f0546bf1f0.tar.xz spack-14e5497758404679ff9fa29af590d7f0546bf1f0.zip |
postgresql: add libs property (#30392)
Co-authored-by: sbulut <sbulut@3vgeomatics.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/postgresql/package.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/postgresql/package.py b/var/spack/repos/builtin/packages/postgresql/package.py index b4fcd665b7..fa1bde728e 100644 --- a/var/spack/repos/builtin/packages/postgresql/package.py +++ b/var/spack/repos/builtin/packages/postgresql/package.py @@ -125,3 +125,25 @@ class Postgresql(AutotoolsPackage): env.prepend_path('TCLLIBPATH', self.prefix.lib) if '+python' in spec: env.prepend_path('PYTHONPATH', self.prefix.lib) + + @property + def libs(self): + stat_libs = ['libecpg_compat', 'libecpg', 'libpgcommon', + 'libpgcommon_shlib', 'libpgfeutils', 'libpgport', + 'libpgport_shlib', 'libpgtypes', 'libpq'] + fl_stat = find_libraries(stat_libs, self.prefix, shared=False, + recursive=True) + + dyn_libs = ['libecpg_compat', 'libecpg', 'libpgtypes', 'libpq', + 'libpqwalreceiver', 'plpgsql', 'pgoutput'] + if '+perl' in self.spec: + dyn_libs.append('plperl') + if '+python' in self.spec: + dyn_libs.append('plpython') + if '+tcl' in self.spec: + dyn_libs.append('pltcl') + + fl_dyn = find_libraries(dyn_libs, self.prefix, shared=True, + recursive=True) + + return fl_dyn + fl_stat |