diff --git a/src/tsm/meson.build b/src/tsm/meson.build index af0e5e1..938b93a 100644 --- a/src/tsm/meson.build +++ b/src/tsm/meson.build @@ -19,6 +19,9 @@ cc = meson.get_compiler('c') if not cc.links(code, args: link_flags, name: '-Wl,--version-script=...') link_flags = [ '-export-symbols-regex=^tsm_' ] + if not cc.links(code, args: link_flags, name: '-Wl,--export-symbol-regex') + link_flags = [] + endif endif libtsm = shared_library(