add_global_arguments applies to all subprojects, or more usually, fails.
The meson docs suggest that add_project_arguments is probably preferable
for this reason.
However, in this case it should only be applied to a single library as a
workaround for supporting older versions of meson. Move it to a
per-target c_args instead, for the same effect.
lib_sources = files()
-add_global_arguments('-fvisibility=hidden', language : 'c')
subdir('buzhash')
subdir('comp')
subdir('hash')
lib_sources += files('zck.c', 'header.c', 'io.c', 'log.c', 'compint.c', 'error.c')
zcklib = library('zck',
lib_sources,
+ # in meson 0.48, use `gnu_symbol_visibility: 'hidden'` kwarg
+ c_args: ['-fvisibility=hidden'],
include_directories: inc,
dependencies: [zstd_dep, openssl_dep],
install: true,