Skip to content

Commit

Permalink
Update meson.build
Browse files Browse the repository at this point in the history
Trying a different fix for the issue.
  • Loading branch information
hdholm authored Mar 23, 2024
1 parent 041094d commit a3ad0c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a3ad0c1

Please sign in to comment.