gnu: spirv-tools: Disable building static libraries.

* gnu/packages/vulkan.scm (spirv-tools): Disable building static libraries to
fix linking issues for packages such as mpv.

Signed-off-by: Marius Bakke <marius@gnu.org>
This commit is contained in:
Kaelyn Takata 2022-11-16 22:52:56 +00:00 committed by Marius Bakke
parent 29754d3683
commit 522d21863e
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -91,6 +91,9 @@ (define-public spirv-tools
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:configure-flags (list "-DBUILD_SHARED_LIBS=ON" `(#:configure-flags (list "-DBUILD_SHARED_LIBS=ON"
;; Some packages like mpv fail to link
;; when the static libraries are built.
"-DSPIRV_TOOLS_BUILD_STATIC=OFF"
(string-append (string-append
"-DSPIRV-Headers_SOURCE_DIR=" "-DSPIRV-Headers_SOURCE_DIR="
(assoc-ref %build-inputs "spirv-headers"))))) (assoc-ref %build-inputs "spirv-headers")))))