diff options
author | Alex Richert <82525672+AlexanderRichert-NOAA@users.noreply.github.com> | 2023-09-13 18:52:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 15:52:30 -0700 |
commit | 6c4f8e62aeef70e6d4196b0c94b842e35d2886e5 (patch) | |
tree | b70d154ff286849c8df356ef04575dccc8fb8c68 | |
parent | cb03db3d694d7315ec5ef5fd199e571641f5c3f2 (diff) | |
download | spack-6c4f8e62aeef70e6d4196b0c94b842e35d2886e5.tar.gz spack-6c4f8e62aeef70e6d4196b0c94b842e35d2886e5.tar.bz2 spack-6c4f8e62aeef70e6d4196b0c94b842e35d2886e5.tar.xz spack-6c4f8e62aeef70e6d4196b0c94b842e35d2886e5.zip |
Add libs property/find_libraries to libiconv (#37962)
-rw-r--r-- | var/spack/repos/builtin/packages/libiconv/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libiconv/package.py b/var/spack/repos/builtin/packages/libiconv/package.py index d0ebf01ad3..20aa9ff5be 100644 --- a/var/spack/repos/builtin/packages/libiconv/package.py +++ b/var/spack/repos/builtin/packages/libiconv/package.py @@ -42,3 +42,8 @@ class Libiconv(AutotoolsPackage, GNUMirrorPackage): # A hack to patch config.guess in the libcharset sub directory copy("./build-aux/config.guess", "libcharset/build-aux/config.guess") return args + + @property + def libs(self): + shared = "libs=shared" in self.spec + return find_libraries(["libiconv"], root=self.prefix, recursive=True, shared=shared) |