summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2017-11-25 19:55:08 +0100
committerChristoph Junghans <christoph.junghans@gmail.com>2017-11-25 11:55:08 -0700
commita465bf3becfb3335fd4bde867e014ddd53160b91 (patch)
treeb3d12b44459cf6bca795864636aecacfe74b02fc
parent1f2867415a26299fb51c8ceae45677b1c3f65a38 (diff)
downloadspack-a465bf3becfb3335fd4bde867e014ddd53160b91.tar.gz
spack-a465bf3becfb3335fd4bde867e014ddd53160b91.tar.bz2
spack-a465bf3becfb3335fd4bde867e014ddd53160b91.tar.xz
spack-a465bf3becfb3335fd4bde867e014ddd53160b91.zip
pocl: fix link to libtool (#6440)
libtool is also needed for linking, otherwise downstream dependencies such as clfft will fail linking against pocl's libOpenCL.so with errors such as: ``` >> 182 /usr/bin/ld: warning: libltdl.so.7, needed by /usr/local/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/pocl-0.14-rwo73qzkcxfupndxoz3pcl2s34o5pt6i/lib/libOpenCL.so, not found (try using -rpath or -rpath-link) >> 183 /usr/local/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/pocl-0.14-rwo73qzkcxfupndxoz3pcl2s34o5pt6i/lib/libOpenCL.so: undefined reference to `lt_dlinit' >> 184 /usr/local/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/pocl-0.14-rwo73qzkcxfupndxoz3pcl2s34o5pt6i/lib/libOpenCL.so: undefined reference to `lt_dlerror' >> 185 /usr/local/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/pocl-0.14-rwo73qzkcxfupndxoz3pcl2s34o5pt6i/lib/libOpenCL.so: undefined reference to `lt_dlopen' >> 186 /usr/local/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/pocl-0.14-rwo73qzkcxfupndxoz3pcl2s34o5pt6i/lib/libOpenCL.so: undefined reference to `lt_dlsym' >> 187 collect2: error: ld returned 1 exit status ```
-rw-r--r--var/spack/repos/builtin/packages/pocl/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/pocl/package.py b/var/spack/repos/builtin/packages/pocl/package.py
index c4a7f7ca83..3ac7182966 100644
--- a/var/spack/repos/builtin/packages/pocl/package.py
+++ b/var/spack/repos/builtin/packages/pocl/package.py
@@ -57,7 +57,7 @@ class Pocl(CMakePackage):
depends_on("cmake @2.8.12:", type="build")
depends_on("hwloc")
- depends_on("libtool", type=("build", "run"))
+ depends_on("libtool", type=("build", "link", "run"))
# We don't request LLVM's shared libraries because these are not
# enabled by default, and also because they fail to build for us
# (see #1616)