diff --git a/lib/meson.build b/lib/meson.build index c986958..0416da3 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -2,6 +2,10 @@ flags = '-Wl,--version-script=' + meson.current_source_dir() + '/libjose.map' code = 'int main() { return 0; }' cc = meson.get_compiler('c') +if not cc.links(code, args: flags, name: '-Wl,--undefined-version --version-script=...') + flags = [ '-export-symbols-regex=^jose_.*' ] +endif + libjose_lib = shared_library('jose', 'misc.c', 'misc.h', 'cfg.c',