summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/meson.build b/src/util/meson.build
index 1d62f55..57b07d9 100644
--- a/src/util/meson.build
+++ b/src/util/meson.build
@@ -2,6 +2,7 @@ util_src = ['color_palette.c', 'blocking_ring_buffer.c']
blake3_opts = cmake.subproject_options()
reltype = is_minsize ? 'MinSizeRel' : 'Release'
blake3_opts.add_cmake_defines({ 'CMAKE_BUILD_TYPE': is_debug ? 'Debug' : reltype })
-blake3 = cmake.subproject('BLAKE3').dependency('blake3')
+blake3_opts.add_cmake_defines({ 'CMAKE_POSITION_INDEPENDENT_CODE': true })
+blake3 = cmake.subproject('BLAKE3', options: blake3_opts).dependency('blake3')
util_deps = [blake3]
util = declare_dependency(sources: util_src, dependencies: util_deps)