summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAlex Richert <82525672+AlexanderRichert-NOAA@users.noreply.github.com>2023-09-13 18:52:30 -0400
committerGitHub <noreply@github.com>2023-09-13 15:52:30 -0700
commit6c4f8e62aeef70e6d4196b0c94b842e35d2886e5 (patch)
treeb70d154ff286849c8df356ef04575dccc8fb8c68 /var
parentcb03db3d694d7315ec5ef5fd199e571641f5c3f2 (diff)
downloadspack-6c4f8e62aeef70e6d4196b0c94b842e35d2886e5.tar.gz
spack-6c4f8e62aeef70e6d4196b0c94b842e35d2886e5.tar.bz2
spack-6c4f8e62aeef70e6d4196b0c94b842e35d2886e5.tar.xz
spack-6c4f8e62aeef70e6d4196b0c94b842e35d2886e5.zip
Add libs property/find_libraries to libiconv (#37962)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libiconv/package.py5
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)